| Total Complexity | 9 |
| Total Lines | 75 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 11 | final class QueryBuilder implements QueryBuilderInterface |
||
| 12 | { |
||
| 13 | private UrlBuilder $url; |
||
| 14 | |||
| 15 | public function __construct() |
||
| 16 | { |
||
| 17 | $this->url = new UrlBuilder(); |
||
| 18 | } |
||
| 19 | |||
| 20 | public function build(): AbstractUrlBuilder |
||
| 23 | } |
||
| 24 | |||
| 25 | /** |
||
| 26 | * @return $this |
||
| 27 | */ |
||
| 28 | public function setExcludeFields(array $fields) |
||
| 29 | { |
||
| 30 | $this->url->setParam('exc', $fields); |
||
| 31 | return $this; |
||
| 32 | } |
||
| 33 | |||
| 34 | /** |
||
| 35 | * @return $this |
||
| 36 | */ |
||
| 37 | public function setGenderFilter(string $gender) |
||
| 38 | { |
||
| 39 | $this->url->setParam('gender', [$gender]); |
||
| 40 | return $this; |
||
| 41 | } |
||
| 42 | |||
| 43 | /** |
||
| 44 | * @return $this |
||
| 45 | */ |
||
| 46 | public function setIncludeFields(array $fields) |
||
| 50 | } |
||
| 51 | |||
| 52 | /** |
||
| 53 | * @return $this |
||
| 54 | */ |
||
| 55 | public function setNationalityFilter(array $nationalities) |
||
| 56 | { |
||
| 57 | $this->url->setParam('nat', $nationalities); |
||
| 58 | return $this; |
||
| 59 | } |
||
| 60 | |||
| 61 | /** |
||
| 62 | * @return $this |
||
| 63 | */ |
||
| 64 | public function setMaxResult(int $max) |
||
| 68 | } |
||
| 69 | |||
| 70 | /** |
||
| 71 | * @return $this |
||
| 72 | */ |
||
| 73 | public function setPage(int $page) |
||
| 77 | } |
||
| 78 | |||
| 79 | /** |
||
| 80 | * @return $this |
||
| 81 | */ |
||
| 82 | public function setPasswordFormat(array $format) |
||
| 88 |