| Total Complexity | 3 |
| Total Lines | 39 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 0 | ||
| 1 | <?php |
||
| 19 | class EntityDb extends Entity implements \IContainer { |
||
| 20 | use TContainer; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * @var string $_activeClass |
||
| 24 | */ |
||
| 25 | protected $_activeClass = ''; // \\DBAL\\ActiveRecord |
||
| 26 | |||
| 27 | /** |
||
| 28 | * @var ActiveRecord $_container |
||
| 29 | */ |
||
| 30 | protected $_container; |
||
| 31 | |||
| 32 | /** |
||
| 33 | * @return ActiveRecord |
||
| 34 | */ |
||
| 35 | public function _getContainer() { |
||
| 36 | return $this->_container; |
||
| 37 | } |
||
| 38 | |||
| 39 | /** |
||
| 40 | * EntityDb constructor. |
||
| 41 | * |
||
| 42 | * @param int $id |
||
| 43 | */ |
||
| 44 | public function __construct($id = 0) { |
||
| 45 | $this->dbLoadRecord($id); |
||
| 46 | } |
||
| 47 | |||
| 48 | /** |
||
| 49 | * @param int|float $id |
||
| 50 | * |
||
| 51 | * @return ActiveRecord |
||
| 52 | */ |
||
| 53 | public function dbLoadRecord($id) { |
||
| 58 | } |
||
| 59 | |||
| 60 | } |
||
| 61 |