| Total Complexity | 5 |
| Total Lines | 58 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 0 | ||
| 1 | <?php |
||
| 23 | class EntityDb extends Entity implements \IContainer { |
||
| 24 | use TContainer; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * @var string $_activeClass |
||
| 28 | */ |
||
| 29 | protected $_activeClass = ''; // \\DBAL\\ActiveRecord |
||
| 30 | |||
| 31 | /** |
||
| 32 | * @var ActiveRecord $_container |
||
| 33 | */ |
||
| 34 | protected $_container; |
||
| 35 | |||
| 36 | /** |
||
| 37 | * @return ActiveRecord |
||
| 38 | */ |
||
| 39 | public function _getContainer() { |
||
| 40 | return $this->_container; |
||
| 41 | } |
||
| 42 | |||
| 43 | /** |
||
| 44 | * EntityDb constructor. |
||
| 45 | * |
||
| 46 | * @param int $id |
||
| 47 | */ |
||
| 48 | public function __construct($id = 0) { |
||
| 49 | $this->dbLoadRecord($id); |
||
| 50 | } |
||
| 51 | |||
| 52 | /** |
||
| 53 | * Set flag "for update" |
||
| 54 | * |
||
| 55 | * @param bool $forUpdate - DbQuery::DB_FOR_UPDATE | DbQuery::DB_SHARED |
||
| 56 | */ |
||
| 57 | public function setForUpdate($forUpdate = DbQuery::DB_FOR_UPDATE) { |
||
| 62 | } |
||
| 63 | |||
| 64 | /** |
||
| 65 | * @param int|float $id |
||
| 66 | * |
||
| 67 | * @return ActiveRecord |
||
| 68 | */ |
||
| 69 | public function dbLoadRecord($id) { |
||
| 74 | } |
||
| 75 | |||
| 76 | /** |
||
| 77 | * |
||
| 78 | */ |
||
| 79 | public function dbUpdate() { |
||
| 81 | } |
||
| 82 | |||
| 83 | } |
||
| 84 |