public function first($cql, $extraParams = array())
    {
        $recs = new Records($cql, $this, 1, $extraParams);
        return $recs->numberOfRecords() ? $recs->current() : null;
    }
public function first($cql, $extraParams = array())
    {
        $recs = new Records($cql, $this, 1, $extraParams);
        return $recs->numberOfRecords() ? $recs->current() : null;
    }
public function first ( $ cql , $ extraParams = array ( ) ) { $ recs = new Records ( $ cql , $ this , 1 , $ extraParams ) ; return $ recs -> numberOfRecords ( ) ? $ recs -> current ( ) : null ; }
Perform a searchRetrieve request and return first record

@param string $cql
@param array $extraParams Extra GET parameters
@return Record
Perform a searchRetrieve request and return first record