for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* This file is part of Phuria SQL Builder package.
*
* Copyright (c) 2016 Beniamin Jonatan Šimko
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Phuria\QueryBuilder\Statement;
* @author Beniamin Jonatan Šimko <[email protected]>
class PDOStatement implements StatementInterface
{
* @var \PDOStatement $wrappedStatement
private $wrappedStatement;
* @param \PDOStatement $statement
public function __construct(\PDOStatement $statement)
$this->wrappedStatement = $statement;
}
* @inheritdoc
public function bindValue($parameter, $value)
$this->wrappedStatement->bindValue($parameter, $value);
return $this;
public function rowCount()
return $this->wrappedStatement->rowCount();
public function execute()
$this->wrappedStatement->execute();
public function fetchScalar()
if (0 === $this->rowCount()) {
return null;
return $this->wrappedStatement->fetch(\PDO::FETCH_COLUMN);