| 1 | <?php |
||
| 21 | class ArticleContext implements Context |
||
| 22 | { |
||
| 23 | /** |
||
| 24 | * @var RepositoryInterface |
||
| 25 | */ |
||
| 26 | private $articleRepository; |
||
| 27 | |||
| 28 | /** |
||
| 29 | * ArticleContext constructor. |
||
| 30 | * |
||
| 31 | * @param RepositoryInterface $articleRepository |
||
| 32 | */ |
||
| 33 | public function __construct(RepositoryInterface $articleRepository) |
||
| 37 | |||
| 38 | /** |
||
| 39 | * @Transform /^article "([^"]+)"$/ |
||
| 40 | * @Transform :article |
||
| 41 | * |
||
| 42 | * @param string $title |
||
| 43 | * |
||
| 44 | * @return Article |
||
| 45 | */ |
||
| 46 | public function getArticleTitle($title) |
||
| 58 | } |
||
| 59 |