public function process()
    {

        // Initialize the query library we are using
        $class = new \ReflectionClass($this->queryLibrary);

        // Set the query pointer to the new instance of the library
        $this->query = $class->newInstance();

        unset($class);

        // Define the return
        $results = [];

        // @todo: Add break up into loop to split large arrays into smaller chunks

        // Do server challenge(s) first, if any
        $this->doChallenges();

        // Do packets for server(s) and get query responses
        $this->doQueries();

        // Now we should have some information to process for each server
        foreach ($this->servers as $server) {
            /* @var $server \GameQ\Server */

            // Parse the responses for this server
            $result = $this->doParseResponse($server);

            // Apply the filters
            $result = array_merge($result, $this->doApplyFilters($result, $server));

            // Sort the keys so they are alphabetical and nicer to look at
            ksort($result);

            // Add the result to the results array
            $results[$server->id()] = $result;
        }

        return $results;
    }
public function process()
    {

        // Initialize the query library we are using
        $class = new \ReflectionClass($this->queryLibrary);

        // Set the query pointer to the new instance of the library
        $this->query = $class->newInstance();

        unset($class);

        // Define the return
        $results = [];

        // @todo: Add break up into loop to split large arrays into smaller chunks

        // Do server challenge(s) first, if any
        $this->doChallenges();

        // Do packets for server(s) and get query responses
        $this->doQueries();

        // Now we should have some information to process for each server
        foreach ($this->servers as $server) {
            /* @var $server \GameQ\Server */

            // Parse the responses for this server
            $result = $this->doParseResponse($server);

            // Apply the filters
            $result = array_merge($result, $this->doApplyFilters($result, $server));

            // Sort the keys so they are alphabetical and nicer to look at
            ksort($result);

            // Add the result to the results array
            $results[$server->id()] = $result;
        }

        return $results;
    }
public function process ( ) { // Initialize the query library we are using $ class = new \ ReflectionClass ( $ this -> queryLibrary ) ; // Set the query pointer to the new instance of the library $ this -> query = $ class -> newInstance ( ) ; unset ( $ class ) ; // Define the return $ results = [ ] ; // @todo: Add break up into loop to split large arrays into smaller chunks // Do server challenge(s) first, if any $ this -> doChallenges ( ) ; // Do packets for server(s) and get query responses $ this -> doQueries ( ) ; // Now we should have some information to process for each server foreach ( $ this -> servers as $ server ) { /* @var $server \GameQ\Server */ // Parse the responses for this server $ result = $ this -> doParseResponse ( $ server ) ; // Apply the filters $ result = array_merge ( $ result , $ this -> doApplyFilters ( $ result , $ server ) ) ; // Sort the keys so they are alphabetical and nicer to look at ksort ( $ result ) ; // Add the result to the results array $ results [ $ server -> id ( ) ] = $ result ; } return $ results ; }
Main method used to actually process all of the added servers and return the information

@return array
@throws \Exception
Main method used to actually process all of the added servers and return the information