| Total Complexity | 2 |
| Total Lines | 55 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 21 | abstract class Base |
||
| 22 | { |
||
| 23 | /** |
||
| 24 | * NULL values |
||
| 25 | */ |
||
| 26 | const PARAM_NULL = 0; |
||
| 27 | |||
| 28 | /** |
||
| 29 | * Boolean (true/false) values |
||
| 30 | */ |
||
| 31 | const PARAM_BOOL = 1; |
||
| 32 | |||
| 33 | /** |
||
| 34 | * 32bit integer values |
||
| 35 | */ |
||
| 36 | const PARAM_INT = 2; |
||
| 37 | |||
| 38 | /** |
||
| 39 | * 32bit floating point values |
||
| 40 | */ |
||
| 41 | const PARAM_FLOAT = 3; |
||
| 42 | |||
| 43 | /** |
||
| 44 | * String values |
||
| 45 | */ |
||
| 46 | const PARAM_STR = 4; |
||
| 47 | |||
| 48 | /** |
||
| 49 | * Large objects |
||
| 50 | */ |
||
| 51 | const PARAM_LOB = 5; |
||
| 52 | |||
| 53 | |||
| 54 | private $conn; |
||
| 55 | |||
| 56 | |||
| 57 | /** |
||
| 58 | * Initializes the base object |
||
| 59 | * |
||
| 60 | * @param \Aimeos\Base\DB\Connection\Iface $conn Database connection object |
||
| 61 | */ |
||
| 62 | public function __construct( \Aimeos\Base\DB\Connection\Iface $conn ) |
||
| 65 | } |
||
| 66 | |||
| 67 | |||
| 68 | /** |
||
| 69 | * Returns the connection object |
||
| 70 | * |
||
| 71 | * @return \Aimeos\Base\DB\Connection\Iface Connection object |
||
| 72 | */ |
||
| 73 | protected function getConnection() : \Aimeos\Base\DB\Connection\Iface |
||
| 78 |