public function query($name, $class, $resolver = null)
    {
        /**
         * @var QueryScaffolder $query
        */
        $query = $this->queries->findByName($name);
        if ($query) {
            return $query;
        }

        $operationScaffold = (new ListQueryScaffolder($name, null, $resolver, $class))
            ->setChainableParent($this);

        $this->queries->push($operationScaffold);

        return $operationScaffold;
    }
public function query($name, $class, $resolver = null)
    {
        /**
         * @var QueryScaffolder $query
        */
        $query = $this->queries->findByName($name);
        if ($query) {
            return $query;
        }

        $operationScaffold = (new ListQueryScaffolder($name, null, $resolver, $class))
            ->setChainableParent($this);

        $this->queries->push($operationScaffold);

        return $operationScaffold;
    }
public function query ( $ name , $ class , $ resolver = null ) { /**
         * @var QueryScaffolder $query
        */ $ query = $ this -> queries -> findByName ( $ name ) ; if ( $ query ) { return $ query ; } $ operationScaffold = ( new ListQueryScaffolder ( $ name , null , $ resolver , $ class ) ) -> setChainableParent ( $ this ) ; $ this -> queries -> push ( $ operationScaffold ) ; return $ operationScaffold ; }
Find or make a query.

@param  string                     $name
@param  string                     $class
@param  callable|OperationResolver $resolver
@return QueryScaffolder|ListQueryScaffolder
Find or make a query .