| Conditions | 3 |
| Paths | 3 |
| Total Lines | 12 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 3 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 43 | public function __construct($formClass, $successActions = []) |
||
| 44 | { |
||
| 45 | $this->formClass = $formClass; |
||
| 46 | foreach ($successActions as $action) { |
||
| 47 | if (!$action instanceof Action) { |
||
| 48 | throw new \InvalidArgumentException( |
||
| 49 | 'All actions passed to the FormWrapper must be an instance of ActionInterface' |
||
| 50 | ); |
||
| 51 | } |
||
| 52 | } |
||
| 53 | $this->successActions = $successActions; |
||
| 54 | } |
||
| 55 | |||
| 76 |