1 | <?php |
||
21 | class ShippingCategoryContext implements Context |
||
22 | { |
||
23 | /** |
||
24 | * @var RepositoryInterface |
||
25 | */ |
||
26 | private $shippingCategoryRepository; |
||
27 | |||
28 | /** |
||
29 | * @param RepositoryInterface $shippingCategoryRepository |
||
30 | */ |
||
31 | public function __construct(RepositoryInterface $shippingCategoryRepository) |
||
35 | |||
36 | /** |
||
37 | * @Transform /^"([^"]+)" shipping category/ |
||
38 | */ |
||
39 | public function getShippingCategoryByName($shippingCategoryName) |
||
51 | } |
||
52 |
Very long variable names usually make code harder to read. It is therefore recommended not to make variable names too verbose.