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();
 }