protected function isReflectionMethodEloquentRelation(ReflectionMethod $method)
    {
        // Check if there is a docblock cms tag
        // this may either 'ignore' the method, or confirm it as a 'relation'

        $cmsTags = $this->getCmsDocBlockTags($method);

        if (array_get($cmsTags, 'relation')) {
            return true;
        }

        if (array_get($cmsTags, 'ignore')) {
            return false;
        }

        // analyze the method to see whether it is a relation
        $body = $this->getMethodBody($method);

        return (bool) $this->findRelationMethodCall($body);
    }
protected function isReflectionMethodEloquentRelation(ReflectionMethod $method)
    {
        // Check if there is a docblock cms tag
        // this may either 'ignore' the method, or confirm it as a 'relation'

        $cmsTags = $this->getCmsDocBlockTags($method);

        if (array_get($cmsTags, 'relation')) {
            return true;
        }

        if (array_get($cmsTags, 'ignore')) {
            return false;
        }

        // analyze the method to see whether it is a relation
        $body = $this->getMethodBody($method);

        return (bool) $this->findRelationMethodCall($body);
    }
protected function isReflectionMethodEloquentRelation ( ReflectionMethod $ method ) { // Check if there is a docblock cms tag // this may either 'ignore' the method, or confirm it as a 'relation' $ cmsTags = $ this -> getCmsDocBlockTags ( $ method ) ; if ( array_get ( $ cmsTags , 'relation' ) ) { return true ; } if ( array_get ( $ cmsTags , 'ignore' ) ) { return false ; } // analyze the method to see whether it is a relation $ body = $ this -> getMethodBody ( $ method ) ; return ( bool ) $ this -> findRelationMethodCall ( $ body ) ; }
Determines whether a given method is a typical relation method

@param ReflectionMethod $method
@return bool
Determines whether a given method is a typical relation method