| Total Complexity | 4 |
| Total Lines | 49 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 9 | class QueriedModelUpdaterBuilder extends AbstractModelUpdaterBuilder |
||
| 10 | { |
||
| 11 | /** |
||
| 12 | * Method on the repository to query for the model |
||
| 13 | */ |
||
| 14 | protected string $queryMethod; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * Parameter name to on the request that contains repository query data |
||
| 18 | */ |
||
| 19 | protected string $lookup; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * Place to look for repository query data in the request |
||
| 23 | */ |
||
| 24 | protected ServerRequestLocation $location; |
||
| 25 | |||
| 26 | public function withQueryMethod(string $queryMethod): self |
||
| 31 | } |
||
| 32 | |||
| 33 | public function withLookup(string $lookup): self |
||
| 34 | { |
||
| 35 | $this->lookup = $lookup; |
||
| 36 | |||
| 37 | return $this; |
||
| 38 | } |
||
| 39 | |||
| 40 | public function withLocation(?ServerRequestLocation $location): self |
||
| 45 | } |
||
| 46 | |||
| 47 | public function build(): QueriedModelUpdater |
||
| 61 |