Jyxo\Time\ComposerException::__construct PHP Метод

__construct() публичный Метод

Constructor.
public __construct ( string $message, integer $code )
$message string Exception message
$code integer Exception code (type)
    public function __construct(string $message, int $code)
    {
        static $allowedUnits = [self::SECOND, self::MINUTE, self::HOUR, self::DAY, self::MONTH, self::YEAR, self::INVALID, self::NOT_COMPLETE];
        if (!in_array($code, $allowedUnits)) {
            $code = self::UNKNOWN;
        }
        parent::__construct($message, $code);
    }
ComposerException