src/Query.php
public static function execute($q) {
        if(!isset(self::$pest))
            $p = new \Pest(self::API);

        $json = $p->get('', [
            'q'				=> $q,
            'format'		=> 'json',
            'diagnostics'	=> false,
            'env'			=> 'http://datatables.org/alltables.env',
        ]);

        return new Result($json);
    }
public static function execute($q) {
        if(!isset(self::$pest))
            $p = new \Pest(self::API);

        $json = $p->get('', [
            'q'				=> $q,
            'format'		=> 'json',
            'diagnostics'	=> false,
            'env'			=> 'http://datatables.org/alltables.env',
        ]);

        return new Result($json);
    }
public static function execute ( $ q ) { if ( ! isset ( self :: $ pest ) ) $ p = new \ Pest ( self :: API ) ; $ json = $ p -> get ( '' , [ 'q' => $ q , 'format' => 'json' , 'diagnostics' => false , 'env' => 'http://datatables.org/alltables.env' , ] ) ; return new Result ( $ json ) ; }
Runs the Query against Yahoo's Database

@param string $q the query to run
@return Result
Runs the Query against Yahoo s Database