| @@ 17-24 (lines=8) @@ | ||
| 14 | ||
| 15 | protected $operation; |
|
| 16 | ||
| 17 | public function __construct($operation) |
|
| 18 | { |
|
| 19 | if(!in_array($operation, self::getAllAvailableOperations())) { |
|
| 20 | throw new \InvalidArgumentException('Unknown Operation: ' . $operation); |
|
| 21 | } |
|
| 22 | ||
| 23 | $this->operation = $operation; |
|
| 24 | } |
|
| 25 | ||
| 26 | public function equals(MaintenanceOperation $other) |
|
| 27 | { |
|
| @@ 14-21 (lines=8) @@ | ||
| 11 | ||
| 12 | protected $operation; |
|
| 13 | ||
| 14 | public function __construct($operation) |
|
| 15 | { |
|
| 16 | if(!in_array($operation, self::getAllAvailableOperations())) { |
|
| 17 | throw new \InvalidArgumentException('Unknown Operation: ' . $operation); |
|
| 18 | } |
|
| 19 | ||
| 20 | $this->operation = $operation; |
|
| 21 | } |
|
| 22 | ||
| 23 | public function equals(PaymentOperation $other) |
|
| 24 | { |
|