FOF30\Model\DataModel\RelationManager::isMagicMethod PHP Метод

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

Is $name a magic-callable method?
public isMagicMethod ( string $name ) : boolean
$name string The name of a potential magic-callable method
Результат boolean
    public function isMagicMethod($name)
    {
        if (isset(static::$relationTypes[$name])) {
            return true;
        } elseif (substr($name, 0, 3) == 'get') {
            $relationName = substr($name, 3);
            $relationName = strtolower($relationName[0]) . substr($relationName, 1);
            if (isset($this->relations[$relationName])) {
                return true;
            }
        }
        return false;
    }