Actions
4 years ago
Controllers
4 years ago
Exceptions
4 years ago
Helpers
4 years ago
Migrations
4 years ago
Traits
4 years ago
ValueObjects
4 years ago
BECSGateway.php
4 years ago
CheckoutGateway.php
4 years ago
CreditCardGateway.php
4 years ago
SEPAGateway.php
4 years ago
Workflow.php
4 years ago
WorkflowAction.php
4 years ago
WorkflowAction.php
20 lines
| 1 | <?php |
| 2 | |
| 3 | namespace Give\PaymentGateways\Gateways\Stripe; |
| 4 | |
| 5 | class WorkflowAction |
| 6 | { |
| 7 | /** @var Workflow */ |
| 8 | protected $attachedWorkflow; |
| 9 | |
| 10 | public function attachWorkflow( Workflow $workflow ) |
| 11 | { |
| 12 | $this->attachedWorkflow = $workflow; |
| 13 | } |
| 14 | |
| 15 | public function __call( $method, $args ) |
| 16 | { |
| 17 | $this->attachedWorkflow->$method( ...$args ); |
| 18 | } |
| 19 | } |
| 20 |