| 1 | <?php |
||
| 21 | final class ArticleContext implements Context |
||
| 22 | { |
||
| 23 | /** @var RepositoryInterface */ |
||
| 24 | private $articleRepository; |
||
| 25 | |||
| 26 | public function __construct(RepositoryInterface $articleRepository) |
||
| 30 | |||
| 31 | /** |
||
| 32 | * @Transform /^article "([^"]+)"$/ |
||
| 33 | * @Transform :article |
||
| 34 | */ |
||
| 35 | public function getArticleByTitle(string $title) |
||
| 47 | } |
||
| 48 |