src/Context/SQLHandler.php
public function getConnection()
    {
        if (! $this->connection) {
            list($dns, $username, $password) = $this->connectionString();

            $this->setConnection(new \PDO($dns, $username, $password));
        }

        return $this->connection;
    }
public function getConnection()
    {
        if (! $this->connection) {
            list($dns, $username, $password) = $this->connectionString();

            $this->setConnection(new \PDO($dns, $username, $password));
        }

        return $this->connection;
    }
public function getConnection ( ) { if ( ! $ this -> connection ) { list ( $ dns , $ username , $ password ) = $ this -> connectionString ( ) ; $ this -> setConnection ( new \ PDO ( $ dns , $ username , $ password ) ) ; } return $ this -> connection ; }
Gets the connection for query execution.
Gets the connection for query execution .