| Total Complexity | 3 |
| Total Lines | 29 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 21 | class IsOrderPaidConditionPlugin extends AbstractPlugin implements ConditionInterface |
||
| 22 | { |
||
| 23 | /** |
||
| 24 | * @var string |
||
| 25 | */ |
||
| 26 | protected const ITEM_STATE_PAID = 'paid'; |
||
| 27 | |||
| 28 | /** |
||
| 29 | * {@inheritDoc} |
||
| 30 | * - Returns TRUE if all order items are in a correct state. |
||
| 31 | * |
||
| 32 | * @api |
||
| 33 | * |
||
| 34 | * @param \Orm\Zed\Sales\Persistence\SpySalesOrderItem $orderItem |
||
| 35 | * |
||
| 36 | * @return bool |
||
| 37 | */ |
||
| 38 | public function check(SpySalesOrderItem $orderItem): bool |
||
| 52 |