GraphQL\Utils\TypeInfo::getInputType PHP Method

getInputType() public method

public getInputType ( ) : GraphQL\Type\Definition\InputType
return GraphQL\Type\Definition\InputType
    function getInputType()
    {
        if (!empty($this->inputTypeStack)) {
            return $this->inputTypeStack[count($this->inputTypeStack) - 1];
        }
        return null;
    }

Usage Example

 /**
  * @return InputType
  */
 function getInputType()
 {
     return $this->_typeInfo->getInputType();
 }