| Total Complexity | 4 |
| Total Lines | 22 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 9 | abstract class RequestModel implements RequestModelInterface |
||
| 10 | { |
||
| 11 | private array $requestData = []; |
||
| 12 | |||
| 13 | public function setRequestData(array $requestData): void |
||
| 14 | { |
||
| 15 | $this->requestData = $requestData; |
||
| 16 | } |
||
| 17 | |||
| 18 | public function getValue(string $field, $default = null) |
||
| 21 | } |
||
| 22 | |||
| 23 | public function hasValue(string $field): bool |
||
| 24 | { |
||
| 25 | return $this->getValue($field) !== null; |
||
| 26 | } |
||
| 27 | |||
| 28 | public function getRequestData(): array |
||
| 31 | } |
||
| 32 | } |
||
| 33 |