public function select(Select $select, ResultSet\ResultSetInterface $resultSet = null)
    {
        $stmt = $this->getSql()->prepareStatementForSqlObject($select);

        $resultSet = $resultSet ?: new ResultSet\ResultSet(ResultSet\ResultSet::TYPE_ARRAY);
        $resultSet->initialize($stmt->execute());

        return $resultSet;
    }
public function select(Select $select, ResultSet\ResultSetInterface $resultSet = null)
    {
        $stmt = $this->getSql()->prepareStatementForSqlObject($select);

        $resultSet = $resultSet ?: new ResultSet\ResultSet(ResultSet\ResultSet::TYPE_ARRAY);
        $resultSet->initialize($stmt->execute());

        return $resultSet;
    }
public function select ( Select $ select , ResultSet \ ResultSetInterface $ resultSet = null ) { $ stmt = $ this -> getSql ( ) -> prepareStatementForSqlObject ( $ select ) ; $ resultSet = $ resultSet ? : new ResultSet \ ResultSet ( ResultSet \ ResultSet :: TYPE_ARRAY ) ; $ resultSet -> initialize ( $ stmt -> execute ( ) ) ; return $ resultSet ; }
return array or null
return array or null