1 | <?php |
||
11 | final class SearchCommand extends AbstractCommand |
||
12 | { |
||
13 | private const CHARSET_VALID = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-+.:_"; |
||
14 | |||
15 | /** |
||
16 | * @var Tag |
||
17 | */ |
||
18 | private $tag; |
||
19 | |||
20 | /** |
||
21 | * @var Query |
||
22 | */ |
||
23 | private $query; |
||
24 | |||
25 | /** |
||
26 | * @var string |
||
27 | */ |
||
28 | private $charset; |
||
29 | |||
30 | /** |
||
31 | * @param Tag $tag |
||
32 | * @param Query $query |
||
33 | * @param string $charset |
||
34 | */ |
||
35 | 3 | public function __construct(Tag $tag, Query $query, string $charset = '') |
|
45 | |||
46 | /** |
||
47 | * @return StreamInterface |
||
48 | */ |
||
49 | 2 | protected function createStream(): StreamInterface |
|
59 | |||
60 | /** |
||
61 | * @return Tag |
||
62 | */ |
||
63 | 2 | public function getTag(): Tag |
|
67 | } |
||
68 |