Esensi\Model\Traits\JugglingModelTrait::isJuggleType PHP Method

isJuggleType() public method

Returns whether the type is a type that can be juggled to.
public isJuggleType ( string $type ) : boolean
$type string to cast
return boolean
    public function isJuggleType($type)
    {
        // Construct a normalized juggle method from the type
        $method = $this->buildJuggleMethod($type);
        // Any type that does map to a model method is invalid
        if (!method_exists($this, $method)) {
            return false;
        }
        return true;
    }