| Total Complexity | 6 |
| Total Lines | 52 |
| Duplicated Lines | 0 % |
| Coverage | 58.33% |
| Changes | 0 | ||
| 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 |
|
| 37 | { |
||
| 38 | 42 | $this->table = $table; |
|
| 39 | 42 | } |
|
| 40 | |||
| 41 | /** |
||
| 42 | * Return table instance for manipulation |
||
| 43 | * |
||
| 44 | * @return TableInterface |
||
| 45 | * @throws TableNotFoundException |
||
| 46 | */ |
||
| 47 | 40 | public function getTable(): TableInterface |
|
| 53 | } |
||
| 54 | |||
| 55 | /** |
||
| 56 | * Init table instance for manipulation |
||
| 57 | * |
||
| 58 | * @return void |
||
| 59 | * @throws TableNotFoundException |
||
| 60 | */ |
||
| 61 | protected function initTable(): void |
||
| 74 | } |
||
| 75 | } |
||
| 76 |