1 | <?php |
||
8 | final class Pairs implements IteratorAggregate |
||
9 | { |
||
10 | /** |
||
11 | * @var QueryString |
||
12 | */ |
||
13 | private $queryString; |
||
14 | |||
15 | /** |
||
16 | * @var bool |
||
17 | */ |
||
18 | private $decodeKeys; |
||
19 | |||
20 | /** |
||
21 | * @var bool |
||
22 | */ |
||
23 | private $decodeValues; |
||
24 | |||
25 | /** |
||
26 | * Pairs constructor. |
||
27 | */ |
||
28 | public function __construct( |
||
39 | |||
40 | /** |
||
41 | * @param QueryString $queryString |
||
42 | * @return Pairs |
||
43 | */ |
||
44 | public function withQueryString(QueryString $queryString): self |
||
50 | |||
51 | /** |
||
52 | * @param bool $decodeKeys |
||
53 | * @return Pairs |
||
54 | */ |
||
55 | public function withDecodeKeys(bool $decodeKeys): self |
||
61 | |||
62 | /** |
||
63 | * @param bool $decodeValues |
||
64 | * @return Pairs |
||
65 | */ |
||
66 | public function withDecodeValues(bool $decodeValues): self |
||
72 | |||
73 | /** |
||
74 | * @return Traversable |
||
75 | */ |
||
76 | public function getIterator(): Traversable |
||
94 | |||
95 | /** |
||
96 | * @return string |
||
97 | */ |
||
98 | public function __toString(): string |
||
102 | } |
||
103 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.