Doctrine\DBAL\Portability\Connection::getFetchCase PHP Method

getFetchCase() public method

public getFetchCase ( ) : integer
return integer
    public function getFetchCase()
    {
        return $this->case;
    }

Usage Example

Example #1
0
 /**
  * Wraps <tt>Statement</tt> and applies portability measures
  *
  * @param \Doctrine\DBAL\Driver\Statement $stmt
  * @param \Doctrine\DBAL\Connection $conn
  */
 public function __construct($stmt, Connection $conn)
 {
     $this->stmt = $stmt;
     $this->portability = $conn->getPortability();
     $this->case = $conn->getFetchCase();
 }