1 | <?php |
||
14 | class MergeQueryUriFactoryDecorator implements UriFactoryInterface |
||
15 | { |
||
16 | |||
17 | |||
18 | /** |
||
19 | * @var UriFactoryInterface |
||
20 | */ |
||
21 | public $uri_factory; |
||
22 | |||
23 | |||
24 | /** |
||
25 | * @param UriFactoryInterface $uri_factory |
||
26 | */ |
||
27 | 4 | public function __construct(UriFactoryInterface $uri_factory) |
|
31 | |||
32 | |||
33 | /** |
||
34 | * @inheritDoc |
||
35 | */ |
||
36 | 4 | public function createUri(string $uri = '') : UriInterface |
|
40 | |||
41 | |||
42 | |||
43 | /** |
||
44 | * @param string|UriInterface $url URI string or UriInterface |
||
45 | * @param string[] $query_params Overriding query parameters |
||
46 | * @return UriInterface |
||
47 | * |
||
48 | * @throws InvalidArgumentException when no string or UriInterface is passed |
||
49 | */ |
||
50 | 4 | public function __invoke( $url, array $query_params = array() ) : UriInterface |
|
54 | |||
55 | |||
56 | /** |
||
57 | * @param string|UriInterface $url URI string or UriInterface |
||
58 | * @param string[] $query_params Overriding query parameters |
||
59 | * @return UriInterface |
||
60 | * |
||
61 | * @throws InvalidArgumentException when no string or UriInterface is passed |
||
62 | */ |
||
63 | 12 | public function createUriMergeQuery( $url, array $query_params = array() ) : UriInterface |
|
83 | } |
||
84 |