1 | <?php |
||
20 | final class ZoneContext implements Context |
||
21 | { |
||
22 | /** |
||
23 | * @var RepositoryInterface |
||
24 | */ |
||
25 | private $zoneRepository; |
||
26 | |||
27 | /** |
||
28 | * @param RepositoryInterface $zoneRepository |
||
29 | */ |
||
30 | public function __construct(RepositoryInterface $zoneRepository) |
||
34 | |||
35 | /** |
||
36 | * @Transform :zone zone |
||
37 | * @Transform zone :zone |
||
38 | * @Transform :zone |
||
39 | */ |
||
40 | public function getZoneByCode($zone) |
||
49 | |||
50 | /** |
||
51 | * @Transform /^rest of the world$/ |
||
52 | * @Transform /^the rest of the world$/ |
||
53 | */ |
||
54 | public function getRestOfTheWorldZone() |
||
63 | } |
||
64 |