src/Pho/Lib/GraphQL/Parser/Definitions/AbstractDefinition.php
protected function _retrieveAll(string $internally, string $graphql, string $class): array
    {
        if(isset($this->$internally)) {
            return $this->$internally;
        }
        $sought = $this->def[$graphql];
        if(!is_array($sought)) {
            $this->$internally = [];
            return [];
        }
        $class = "\\".__NAMESPACE__."\\".$class;
        foreach($sought as $s) {
            $this->$internally[] = new $class($s);
        }
        return $this->$internally;
    }
protected function _retrieveAll(string $internally, string $graphql, string $class): array
    {
        if(isset($this->$internally)) {
            return $this->$internally;
        }
        $sought = $this->def[$graphql];
        if(!is_array($sought)) {
            $this->$internally = [];
            return [];
        }
        $class = "\\".__NAMESPACE__."\\".$class;
        foreach($sought as $s) {
            $this->$internally[] = new $class($s);
        }
        return $this->$internally;
    }
protected function _retrieveAll ( string $ internally , string $ graphql , string $ class ) : array { if ( isset ( $ this -> $ internally ) ) { return $ this -> $ internally ; } $ sought = $ this -> def [ $ graphql ] ; if ( ! is_array ( $ sought ) ) { $ this -> $ internally = [ ] ; return [ ] ; } $ class = "\\" . __NAMESPACE__ . "\\" . $ class ; foreach ( $ sought as $ s ) { $ this -> $ internally [ ] = new $ class ( $ s ) ; } return $ this -> $ internally ; }
A helper method to retrieve an array of a specific type 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.

@return array An array of objects in question.
A helper method to retrieve an array of a specific type from the given GraphQL definition .