| Total Complexity | 6 |
| Total Lines | 53 |
| Duplicated Lines | 0 % |
| Coverage | 84.21% |
| Changes | 0 | ||
| 1 | <?php |
||
| 9 | class ProcessedFieldReportBuilder implements ProcessedFieldReportBuilderInterface |
||
| 10 | { |
||
| 11 | protected $sanitizedInputValue = null; |
||
| 12 | |||
| 13 | protected bool $updateAttempted = false; |
||
| 14 | |||
| 15 | protected bool $updateSuccessful = false; |
||
| 16 | |||
| 17 | 6 | public function __construct(?ProcessedFieldReportInterface $previous = null) |
|
| 23 | } |
||
| 24 | } |
||
| 25 | |||
| 26 | /** |
||
| 27 | * @return $this |
||
| 28 | */ |
||
| 29 | 6 | public function withSanitizedInputValue($value): ProcessedFieldReportBuilder |
|
| 30 | { |
||
| 31 | 6 | $this->sanitizedInputValue = $value; |
|
| 32 | |||
| 33 | 6 | return $this; |
|
| 34 | } |
||
| 35 | |||
| 36 | /** |
||
| 37 | * @return $this |
||
| 38 | */ |
||
| 39 | 5 | public function withUpdateAttempted(bool $result): ProcessedFieldReportBuilder |
|
| 40 | { |
||
| 41 | 5 | $this->updateAttempted = $result; |
|
| 42 | |||
| 43 | 5 | return $this; |
|
| 44 | } |
||
| 45 | |||
| 46 | /** |
||
| 47 | * @return $this |
||
| 48 | */ |
||
| 49 | 5 | public function withUpdateSuccessful(bool $result): ProcessedFieldReportBuilder |
|
| 54 | } |
||
| 55 | |||
| 56 | 6 | public function build(): ProcessedFieldReportInterface |
|
| 62 | ); |
||
| 63 | } |
||
| 64 | } |
||
| 65 |