Subversion-Projekte lars-tiefland.laravel_shop

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
148 lars 1
<?php
2
 
3
/**
4
 * This file is part of the Carbon package.
5
 *
6
 * (c) Brian Nesbitt <brian@nesbot.com>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
 
12
namespace Carbon\Exceptions;
13
 
14
use InvalidArgumentException as BaseInvalidArgumentException;
15
use Throwable;
16
 
17
class NotLocaleAwareException extends BaseInvalidArgumentException implements InvalidArgumentException
18
{
19
    /**
20
     * Constructor.
21
     *
22
     * @param mixed          $object
23
     * @param int            $code
24
     * @param Throwable|null $previous
25
     */
26
    public function __construct($object, $code = 0, Throwable $previous = null)
27
    {
28
        $dump = \is_object($object) ? \get_class($object) : \gettype($object);
29
 
30
        parent::__construct("$dump does neither implements Symfony\Contracts\Translation\LocaleAwareInterface nor getLocale() method.", $code, $previous);
31
    }
32
}