| Total Complexity | 3 |
| Total Lines | 26 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php declare(strict_types=1); |
||
| 10 | class Graphql |
||
| 11 | { |
||
| 12 | public Model $model; |
||
| 13 | |||
| 14 | public function __construct(Model $model) |
||
| 15 | { |
||
| 16 | $this->model = $model; |
||
| 17 | } |
||
| 18 | |||
| 19 | /** |
||
| 20 | * Generates a GraphQL query for this model. |
||
| 21 | * |
||
| 22 | * @param array $params User supplied list of parameters, which may be used |
||
| 23 | * to control behavior (like recursion). |
||
| 24 | * @return string |
||
| 25 | */ |
||
| 26 | public function generate(array $params = []): string |
||
| 36 | } |
||
| 37 | } |
||
| 38 |