| Total Complexity | 3 |
| Total Lines | 30 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 34 | #[Attribute(Attribute::TARGET_PROPERTY)] |
||
| 35 | final class DateFormat implements ChildBuilderAttributeInterface |
||
| 36 | { |
||
| 37 | 3 | public function __construct( |
|
| 48 | 3 | } |
|
| 49 | |||
| 50 | /** |
||
| 51 | * {@inheritdoc} |
||
| 52 | */ |
||
| 53 | 1 | public function applyOnChildBuilder(AttributeForm $form, ChildBuilderInterface $builder): void |
|
| 54 | { |
||
| 55 | 1 | $builder->format($this->format); |
|
| 56 | } |
||
| 57 | |||
| 58 | /** |
||
| 59 | * {@inheritdoc} |
||
| 60 | */ |
||
| 61 | 2 | public function generateCodeForChildBuilder(string $name, AttributesProcessorGenerator $generator, AttributeForm $form): void |
|
| 64 | } |
||
| 65 | } |
||
| 66 |