| Total Complexity | 6 |
| Total Lines | 47 |
| Duplicated Lines | 0 % |
| Coverage | 66.67% |
| Changes | 0 | ||
| 1 | <?php |
||
| 9 | class FormShieldReportBuilder implements FormShieldReportBuilderInterface |
||
| 10 | { |
||
| 11 | protected bool $status; |
||
| 12 | |||
| 13 | protected array $violations = []; |
||
| 14 | |||
| 15 | 12 | public function __construct(FormShieldReportInterface $previous = null) |
|
| 20 | } |
||
| 21 | } |
||
| 22 | |||
| 23 | /** |
||
| 24 | * @return $this |
||
| 25 | */ |
||
| 26 | 12 | public function withVerificationStatus(bool $status): FormShieldReportBuilderInterface |
|
| 27 | { |
||
| 28 | 12 | $this->status = $status; |
|
| 29 | |||
| 30 | 12 | return $this; |
|
| 31 | } |
||
| 32 | |||
| 33 | /** |
||
| 34 | * @return $this |
||
| 35 | */ |
||
| 36 | 6 | public function withRuleViolation(string $name): FormShieldReportBuilderInterface |
|
| 37 | { |
||
| 38 | 6 | $this->violations[] = $name; |
|
| 39 | |||
| 40 | 6 | return $this; |
|
| 41 | } |
||
| 42 | |||
| 43 | /** |
||
| 44 | * @return $this |
||
| 45 | */ |
||
| 46 | public function withRuleViolations(array $violations): FormShieldReportBuilderInterface |
||
| 51 | } |
||
| 52 | |||
| 53 | 12 | public function build(): FormShieldReportInterface |
|
| 56 | } |
||
| 57 | } |
||
| 58 |