| Total Complexity | 3 |
| Total Lines | 33 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 27 | class BooleanElementBuilder extends AbstractElementBuilder |
||
| 28 | { |
||
| 29 | /** |
||
| 30 | * @var string |
||
| 31 | */ |
||
| 32 | private $httpValue = '1'; |
||
| 33 | |||
| 34 | /** |
||
| 35 | * Define the HTTP value used for represent the true value |
||
| 36 | * |
||
| 37 | * @param string $httpValue A non-empty string value. The default value is "1" |
||
| 38 | * |
||
| 39 | * @return $this |
||
| 40 | * |
||
| 41 | * @see ElementInterface::httpValue() |
||
| 42 | */ |
||
| 43 | 2 | public function httpValue(string $httpValue): self |
|
| 52 | } |
||
| 53 | |||
| 54 | /** |
||
| 55 | * {@inheritdoc} |
||
| 56 | */ |
||
| 57 | 11 | protected function createElement(ValueValidatorInterface $validator, TransformerInterface $transformer): ElementInterface |
|
| 62 |