Newscoop\Doctrine\AdoDbAdapter::getOne PHP Method

getOne() public method

Execute sql query and returns the value of first column of the first row.
public getOne ( string $sql, array $params = [] ) : mixed
$sql string
$params array
return mixed
    public function getOne($sql, array $params = array())
    {
        return $this->connection->fetchColumn($sql, $params);
    }