GraphQL\Utils\TypeInfo::getParentType PHP 메소드

getParentType() 공개 메소드

public getParentType ( ) : Type
리턴 GraphQL\Type\Definition\Type
    function getParentType()
    {
        if (!empty($this->parentTypeStack)) {
            return $this->parentTypeStack[count($this->parentTypeStack) - 1];
        }
        return null;
    }

Usage Example

예제 #1
0
 /**
  * @return CompositeType
  */
 function getParentType()
 {
     return $this->_typeInfo->getParentType();
 }