| 1 | <?php |
||
| 20 | final class ChannelContext implements Context |
||
| 21 | { |
||
| 22 | /** |
||
| 23 | * @var ChannelRepositoryInterface |
||
| 24 | */ |
||
| 25 | private $channelRepository; |
||
| 26 | |||
| 27 | /** |
||
| 28 | * @param ChannelRepositoryInterface $channelRepository |
||
| 29 | */ |
||
| 30 | public function __construct(ChannelRepositoryInterface $channelRepository) |
||
| 34 | |||
| 35 | /** |
||
| 36 | * @Transform /^channel "([^"]+)"$/ |
||
| 37 | * @Transform /^"([^"]+)" channel/ |
||
| 38 | * @Transform :channel |
||
| 39 | */ |
||
| 40 | public function getChannelByName($channelName) |
||
| 49 | } |
||
| 50 |