public function connection($connection = null)
    {
        deprecationWarning(
            get_called_class() . '::connection() is deprecated. ' .
            'Use setConnection()/getConnection() instead.'
        );
        if ($connection !== null) {
            $this->_connection = $connection;
        }

        return $this->_connection;
    }
public function connection($connection = null)
    {
        deprecationWarning(
            get_called_class() . '::connection() is deprecated. ' .
            'Use setConnection()/getConnection() instead.'
        );
        if ($connection !== null) {
            $this->_connection = $connection;
        }

        return $this->_connection;
    }
public function connection ( $ connection = null ) { deprecationWarning ( get_called_class ( ) . '::connection() is deprecated. ' . 'Use setConnection()/getConnection() instead.' ) ; 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 mixed $connection The PDO connection instance.
@return mixed Connection object used internally.
@deprecated 3.6.0 Use getConnection()/setConnection() instead.
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 .