public function toArray()
    {
        $result = [];
        foreach ($this->results as $r) {
            $result[] = $r->toArray();
        }
        return $result;
    }
public function toArray()
    {
        $result = [];
        foreach ($this->results as $r) {
            $result[] = $r->toArray();
        }
        return $result;
    }
public function toArray ( ) { $ result = [ ] ; foreach ( $ this -> results as $ r ) { $ result [ ] = $ r -> toArray ( ) ; } return $ result ; }
Return results as a simple array

@return array
Return results as a simple array