GraphQL\Schema::getDirective PHP 메소드

getDirective() 공개 메소드

public getDirective ( $name ) : Directive
$name
리턴 GraphQL\Type\Definition\Directive
    public function getDirective($name)
    {
        foreach ($this->getDirectives() as $directive) {
            if ($directive->name === $name) {
                return $directive;
            }
        }
        return null;
    }