for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* @license LGPLv3, https://opensource.org/licenses/LGPL-3.0
* @copyright Aimeos (aimeos.org), 2015-2025
* @package Base
* @subpackage DB
*/
namespace Aimeos\Base\DB\Statement;
* Base class for all statement implementations providing the parameter constants
*
abstract class Base
{
* NULL values
const PARAM_NULL = 0;
* Boolean (true/false) values
const PARAM_BOOL = 1;
* 32bit integer values
const PARAM_INT = 2;
* 32bit floating point values
const PARAM_FLOAT = 3;
* String values
const PARAM_STR = 4;
* Large objects
const PARAM_LOB = 5;
private \Aimeos\Base\DB\Connection\Iface $conn;
* Initializes the base object
* @param \Aimeos\Base\DB\Connection\Iface $conn Database connection object
public function __construct( \Aimeos\Base\DB\Connection\Iface $conn )
$this->conn = $conn;
}
* Returns the connection object
* @return \Aimeos\Base\DB\Connection\Iface Connection object
protected function getConnection() : \Aimeos\Base\DB\Connection\Iface
return $this->conn;