| 1 | <?php |
||
| 22 | trait TableProperty |
||
| 23 | { |
||
| 24 | /** |
||
| 25 | * @var TableInterface instance |
||
| 26 | */ |
||
| 27 | protected $table; |
||
| 28 | |||
| 29 | /** |
||
| 30 | * Setup Table instance |
||
| 31 | * |
||
| 32 | * @param TableInterface $table |
||
| 33 | * |
||
| 34 | * @return void |
||
| 35 | */ |
||
| 36 | 42 | public function setTable(TableInterface $table) : void |
|
| 40 | |||
| 41 | /** |
||
| 42 | * Return table instance for manipulation |
||
| 43 | * |
||
| 44 | * @return TableInterface |
||
| 45 | * @throws TableNotFoundException |
||
| 46 | */ |
||
| 47 | 40 | public function getTable() : TableInterface |
|
| 54 | |||
| 55 | /** |
||
| 56 | * Init table instance for manipulation |
||
| 57 | * |
||
| 58 | * @return void |
||
| 59 | * @throws TableNotFoundException |
||
| 60 | */ |
||
| 61 | protected function initTable() : void |
||
| 75 | } |
||
| 76 |