Fenos\Notifynder\Builder\BuilderRules::isCarbon PHP Method

isCarbon() protected method

Value has to be a valid Carbon Instance.
protected isCarbon ( $value ) : boolean | InvalidArgumentExceptio\InvalidArgumentException
$value
return 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');
    }