| 1 | <?php |
||
| 20 | final class PaymentContext implements Context |
||
| 21 | { |
||
| 22 | /** |
||
| 23 | * @var RepositoryInterface |
||
| 24 | */ |
||
| 25 | private $paymentMethodRepository; |
||
| 26 | |||
| 27 | /** |
||
| 28 | * @param RepositoryInterface $paymentMethodRepository |
||
| 29 | */ |
||
| 30 | public function __construct(RepositoryInterface $paymentMethodRepository) |
||
| 34 | |||
| 35 | /** |
||
| 36 | * @Transform /^"([^"]+)" payment$/ |
||
| 37 | */ |
||
| 38 | public function getPaymentMethodByName($paymentMethodName) |
||
| 47 | } |
||
| 48 |