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