public function getConnection() {
        if (null === $this->connection) {
            $this->connection = $this->connect();
        }
        return $this->connection;
    }
public function getConnection() {
        if (null === $this->connection) {
            $this->connection = $this->connect();
        }
        return $this->connection;
    }
public function getConnection ( ) { if ( null === $ this -> connection ) { $ this -> connection = $ this -> connect ( ) ; } return $ this -> connection ; }
Get the connection.

@return PDO Returns the connection.
@throws Exception Throws an exception if the connection failed.
Get the connection .