public function getPdo()
    {
        if ($this->pdo === null) {
            $this->pdo = $this->doConnect();
        }
        return $this->pdo;
    }
public function getPdo()
    {
        if ($this->pdo === null) {
            $this->pdo = $this->doConnect();
        }
        return $this->pdo;
    }
public function getPdo ( ) { if ( $ this -> pdo === null ) { $ this -> pdo = $ this -> doConnect ( ) ; } return $ this -> pdo ; }
Gets the PDO connection of the database. And connect to the database if
not connected yet.

@return PDOInterface
Gets the PDO connection of the database . And connect to the database if not connected yet .