1 | <?php |
||
27 | class Table extends AbstractCrud |
||
28 | { |
||
29 | use Db\Traits\TableProperty; |
||
30 | |||
31 | /** |
||
32 | * {@inheritdoc} |
||
33 | * |
||
34 | * @throws InvalidPrimaryKeyException |
||
35 | * @throws TableNotFoundException |
||
36 | */ |
||
37 | 26 | public function getPrimaryKey() : array |
|
41 | |||
42 | /** |
||
43 | * Get record from Db or create new object |
||
44 | * |
||
45 | * @param mixed $primary |
||
46 | * |
||
47 | * @return Db\RowInterface |
||
48 | * @throws TableNotFoundException |
||
49 | * @throws NotFoundException |
||
50 | */ |
||
51 | 4 | public function readOne($primary) |
|
67 | |||
68 | /** |
||
69 | * Get set of records |
||
70 | * |
||
71 | * @param int $offset |
||
72 | * @param int $limit |
||
73 | * @param array $params |
||
74 | * |
||
75 | * @return array[Row[], integer] |
||
|
|||
76 | * @throws ApplicationException |
||
77 | */ |
||
78 | 2 | public function readSet($offset = 0, $limit = 10, $params = []) |
|
129 | |||
130 | /** |
||
131 | * Create item |
||
132 | * |
||
133 | * @param array $data |
||
134 | * |
||
135 | * @return mixed |
||
136 | * @throws TableNotFoundException |
||
137 | */ |
||
138 | 1 | public function createOne($data) |
|
147 | |||
148 | /** |
||
149 | * Update item |
||
150 | * |
||
151 | * @param mixed $primary |
||
152 | * @param array $data |
||
153 | * |
||
154 | * @return integer |
||
155 | * @throws NotFoundException |
||
156 | * @throws TableNotFoundException |
||
157 | */ |
||
158 | 2 | public function updateOne($primary, $data) |
|
170 | |||
171 | /** |
||
172 | * Delete item |
||
173 | * |
||
174 | * @param mixed $primary |
||
175 | * |
||
176 | * @return integer |
||
177 | * @throws NotFoundException |
||
178 | * @throws TableNotFoundException |
||
179 | */ |
||
180 | 2 | public function deleteOne($primary) |
|
189 | } |
||
190 |
This check marks PHPDoc comments that could not be parsed by our parser. To see which comment annotations we can parse, please refer to our documentation on supported doc-types.