| @@ 189-201 (lines=13) @@ | ||
| 186 | return $this->jurisdictionLevel; |
|
| 187 | } |
|
| 188 | ||
| 189 | public function setJurisdictionLevel($jurisdictionLevel) |
|
| 190 | { |
|
| 191 | $isAllowed = in_array($jurisdictionLevel, $this->allowedJurisdictionLevels); |
|
| 192 | $this->jurisdictionLevel = $isAllowed ? $jurisdictionLevel : null; |
|
| 193 | if (!$isAllowed) { |
|
| 194 | $logData = ['jurisdiction_level' => $jurisdictionLevel]; |
|
| 195 | $this->logger->warning( |
|
| 196 | 'Jurisdiction Level "{jurisdiction_level}" is not allowed.', |
|
| 197 | $this->getLogContextData(__CLASS__, $logData) |
|
| 198 | ); |
|
| 199 | } |
|
| 200 | return $this; |
|
| 201 | } |
|
| 202 | public function getJurisdictionId() |
|
| 203 | { |
|
| 204 | return $this->jurisdictionId; |
|
| @@ 81-93 (lines=13) @@ | ||
| 78 | return $this->tenderClass; |
|
| 79 | } |
|
| 80 | ||
| 81 | public function setTenderClass($tenderClass) |
|
| 82 | { |
|
| 83 | $isAllowed = in_array($tenderClass, $this->tenderClassEnum); |
|
| 84 | $this->tenderClass = $isAllowed ? $tenderClass : null; |
|
| 85 | if (!$isAllowed) { |
|
| 86 | $logData = ['tender_class' => $tenderClass]; |
|
| 87 | $this->logger->warning( |
|
| 88 | 'Tender Class "{tender_class}" is not allowed.', |
|
| 89 | $this->getLogContextData(__CLASS__, $logData) |
|
| 90 | ); |
|
| 91 | } |
|
| 92 | return $this; |
|
| 93 | } |
|
| 94 | ||
| 95 | /** |
|
| 96 | * Serialize the various parts of the payload into XML strings and |
|