| 1 | <?php |
||
| 20 | final class TaxCategoryContext implements Context |
||
| 21 | { |
||
| 22 | /** |
||
| 23 | * @var TaxCategoryRepositoryInterface |
||
| 24 | */ |
||
| 25 | private $taxCategoryRepository; |
||
| 26 | |||
| 27 | /** |
||
| 28 | * @param TaxCategoryRepositoryInterface $taxCategoryRepository |
||
| 29 | */ |
||
| 30 | public function __construct(TaxCategoryRepositoryInterface $taxCategoryRepository) |
||
| 34 | |||
| 35 | /** |
||
| 36 | * @Transform /^"([^"]+)" tax category$/ |
||
| 37 | * @Transform /^tax category "([^"]+)"$/ |
||
| 38 | * @Transform :taxCategory |
||
| 39 | */ |
||
| 40 | public function getTaxCategoryByName($taxCategoryName) |
||
| 49 | } |
||
| 50 |