| Conditions | 1 |
| Paths | 1 |
| Total Lines | 12 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 2 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 32 | public static function createAsSubaction(ActionInterface $action, CustomerInterface $customer): TemporaryAction |
||
| 33 | { |
||
| 34 | return new self( |
||
| 35 | null, |
||
| 36 | $action->getType(), |
||
| 37 | $action->getTarget(), |
||
| 38 | $action->getQuantity(), |
||
| 39 | $customer, |
||
| 40 | $action->getTime(), |
||
| 41 | null, |
||
| 42 | $action->getState(), |
||
| 43 | $action |
||
| 44 | ); |
||
| 47 |