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