1 | <?php |
||
19 | trait HasLocations |
||
20 | { |
||
21 | /** |
||
22 | * @var array|DirectiveLocation[] |
||
23 | */ |
||
24 | protected $locations = []; |
||
25 | |||
26 | /** |
||
27 | * @return iterable|DirectiveLocation[] |
||
28 | */ |
||
29 | public function getLocations(): iterable |
||
33 | |||
34 | /** |
||
35 | * @param string $name |
||
36 | * @return null|DirectiveLocation |
||
37 | */ |
||
38 | public function getLocation(string $name): ?DirectiveLocation |
||
42 | |||
43 | /** |
||
44 | * @param string $name |
||
45 | * @return bool |
||
46 | */ |
||
47 | public function hasLocation(string $name): bool |
||
51 | |||
52 | /** |
||
53 | * @param DirectiveLocation ...$locations |
||
54 | * @return ProvidesLocations|$this |
||
55 | */ |
||
56 | 9 | public function withLocation(DirectiveLocation ...$locations): ProvidesLocations |
|
64 | } |
||
65 |