Fenos\Notifynder\Builder\BuilderRules::isCarbon PHP 메소드

isCarbon() 보호된 메소드

Value has to be a valid Carbon Instance.
protected isCarbon ( $value ) : boolean | InvalidArgumentExceptio\InvalidArgumentException
$value
리턴 boolean | InvalidArgumentExceptio\InvalidArgumentException | InvalidArgumentException
    protected function isCarbon($value)
    {
        if ($value instanceof Carbon) {
            return true;
        }
        throw new InvalidArgumentException('The value Passed has to be an instance of Carbon\\Carbon');
    }