| 1 | <?php |
||
| 13 | class Store |
||
| 14 | { |
||
| 15 | /** |
||
| 16 | * @var Delete |
||
| 17 | */ |
||
| 18 | private $delete; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * @var Insert |
||
| 22 | */ |
||
| 23 | private $insert; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * Store constructor. |
||
| 27 | * |
||
| 28 | * @param Delete $delete |
||
| 29 | * @param Insert $insert |
||
| 30 | */ |
||
| 31 | 20 | public function __construct(Delete $delete, Insert $insert) |
|
| 36 | |||
| 37 | /** |
||
| 38 | * Delete |
||
| 39 | * |
||
| 40 | * @param Index $index |
||
| 41 | * @param integer $id |
||
| 42 | * @param boolean|string $uid |
||
| 43 | * @return Delete |
||
| 44 | */ |
||
| 45 | 4 | public function delete(Index $index, $id, $uid = false) |
|
| 49 | |||
| 50 | /** |
||
| 51 | * Insert |
||
| 52 | * |
||
| 53 | * @param Index $index |
||
| 54 | * @param int $id |
||
| 55 | * @param array $fields |
||
| 56 | * @param string|boolean $uid |
||
| 57 | * @param boolean $deleteFirst |
||
| 58 | * @param array $boostFields |
||
| 59 | * @return mixed |
||
| 60 | */ |
||
| 61 | 2 | public function insert( |
|
| 73 | } |
||
| 74 |