| @@ 113-123 (lines=11) @@ | ||
| 110 | * @return void |
|
| 111 | * @throws InvalidArgumentException |
|
| 112 | */ |
|
| 113 | private function validateInitializationType() |
|
| 114 | { |
|
| 115 | $initializationType = $this->pixCashoutManual->initializationType; |
|
| 116 | if (empty($initializationType) || !is_string($initializationType)) { |
|
| 117 | throw new \InvalidArgumentException('initialization type should be a string'); |
|
| 118 | } |
|
| 119 | ||
| 120 | if ($this->pixCashoutManual->initializationType != 'Manual') { |
|
| 121 | throw new \InvalidArgumentException('this initialization type is not valid'); |
|
| 122 | } |
|
| 123 | } |
|
| 124 | } |
|
| 125 | ||
| @@ 114-124 (lines=11) @@ | ||
| 111 | * @return void |
|
| 112 | * @throws InvalidArgumentException |
|
| 113 | */ |
|
| 114 | private function validateInitializationType() |
|
| 115 | { |
|
| 116 | $initializationType = $this->pixCashoutStaticQrCode->initializationType; |
|
| 117 | if (empty($initializationType) || !is_string($initializationType)) { |
|
| 118 | throw new \InvalidArgumentException('initialization type should be a string'); |
|
| 119 | } |
|
| 120 | ||
| 121 | if ($this->pixCashoutStaticQrCode->initializationType != 'StaticQrCode') { |
|
| 122 | throw new \InvalidArgumentException('this initialization type is not valid'); |
|
| 123 | } |
|
| 124 | } |
|
| 125 | ||
| 126 | /** |
|
| 127 | * This validates the end to end id |
|