public function connection($connection = null)
    {
        if ($connection !== null) {
            $this->_connection = $connection;
        }

        return $this->_connection;
    }
public function connection($connection = null)
    {
        if ($connection !== null) {
            $this->_connection = $connection;
        }

        return $this->_connection;
    }
public function connection ( $ connection = null ) { if ( $ connection !== null ) { $ this -> _connection = $ connection ; } return $ this -> _connection ; }
Returns correct connection resource or object that is internally used
If first argument is passed, it will set internal connection object or
result to the value passed

@param null|\PDO $connection The PDO connection instance.
@return \PDO connection object used internally
Returns correct connection resource or object that is internally used If first argument is passed it will set internal connection object or result to the value passed