| 1 | <?php  | 
            ||
| 20 | final class ShippingContext implements Context  | 
            ||
| 21 | { | 
            ||
| 22 | /**  | 
            ||
| 23 | * @var RepositoryInterface  | 
            ||
| 24 | */  | 
            ||
| 25 | private $shippingMethodRepository;  | 
            ||
| 26 | |||
| 27 | /**  | 
            ||
| 28 | * @param RepositoryInterface $shippingMethodRepository  | 
            ||
| 29 | */  | 
            ||
| 30 | public function __construct(RepositoryInterface $shippingMethodRepository)  | 
            ||
| 34 | |||
| 35 | /**  | 
            ||
| 36 | * @Transform :shippingMethodName shipping method  | 
            ||
| 37 | * @Transform shipping method :shippingMethodName  | 
            ||
| 38 | * @Transform /^"([^"]*)" shipping method$/  | 
            ||
| 39 | */  | 
            ||
| 40 | public function getShippingMethodByName($shippingMethodName)  | 
            ||
| 49 | }  | 
            ||
| 50 |