src/Pho/Lib/GraphQL/Parser/Definitions/AbstractDefinition.php
protected function _retrieveOne(string $internally, string $graphql, string $class, int $n) // : mixed
    {
        if(isset($this->$internally[$n])) {
            return $this->$internally[$n];
        }
        if(isset($this->def[$graphql][$n])) {
            $class = "\\".__NAMESPACE__."\\".$class;
            return new $class($this->def[$graphql][$n]);
        }
        return new $class();
    }
protected function _retrieveOne(string $internally, string $graphql, string $class, int $n) // : mixed
    {
        if(isset($this->$internally[$n])) {
            return $this->$internally[$n];
        }
        if(isset($this->def[$graphql][$n])) {
            $class = "\\".__NAMESPACE__."\\".$class;
            return new $class($this->def[$graphql][$n]);
        }
        return new $class();
    }
protected function _retrieveOne ( string $ internally , string $ graphql , string $ class , int $ n ) // : mixed { if ( isset ( $ this -> $ internally [ $ n ] ) ) { return $ this -> $ internally [ $ n ] ; } if ( isset ( $ this -> def [ $ graphql ] [ $ n ] ) ) { $ class = "\\" . __NAMESPACE__ . "\\" . $ class ; return new $ class ( $ this -> def [ $ graphql ] [ $ n ] ) ; } return new $ class ( ) ; }
A helper method to retrieve a single object of a specific type, at given position,
from the given GraphQL definition.

@param string $internally What the object in question is called internally.
@param string $graphql What the object in question is called in GraphQL definition AST.
@param string $class What class the object in question is associated within this parser.
@param int $n Position.

@return mixed A parser definition type as defined by the 3rd parameter of this method.
A helper method to retrieve a single object of a specific type at given position from the given GraphQL definition .