| Total Complexity | 2 |
| Total Lines | 34 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 22 | #[Attribute(Attribute::TARGET_CLASS)] |
||
| 23 | final class AddChild extends AbstractAnnotation |
||
| 24 | { |
||
| 25 | |||
| 26 | /** |
||
| 27 | * Child model class. |
||
| 28 | * |
||
| 29 | * @var string|null |
||
| 30 | */ |
||
| 31 | public ?string $class = null; |
||
| 32 | |||
| 33 | /** |
||
| 34 | * Reverse field. |
||
| 35 | * |
||
| 36 | * @var string|null |
||
| 37 | */ |
||
| 38 | public ?string $field = null; |
||
| 39 | |||
| 40 | /** |
||
| 41 | * @param string|array|null $class Model class or annotation parameters. |
||
| 42 | * @param string|null $field Reverse field. |
||
| 43 | * |
||
| 44 | * @throws ReflectionException |
||
| 45 | */ |
||
| 46 | public function __construct( |
||
| 60 |