GraphQL\Utils\TypeInfo::getDirective PHP Method

getDirective() public method

public getDirective ( ) : Directive | null
return GraphQL\Type\Definition\Directive | null
    function getDirective()
    {
        return $this->directive;
    }

Usage Example

 function getDirective()
 {
     return $this->_typeInfo->getDirective();
 }