| Total Complexity | 1 |
| Total Lines | 24 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 30 | #[Attribute(Attribute::TARGET_PROPERTY)] |
||
| 31 | final class Relationship |
||
| 32 | { |
||
| 33 | |||
| 34 | /** |
||
| 35 | * @var class-string |
||
|
|
|||
| 36 | */ |
||
| 37 | public string $target; |
||
| 38 | |||
| 39 | /** |
||
| 40 | * @var int<1, max>|null |
||
| 41 | */ |
||
| 42 | public ?int $limit; |
||
| 43 | |||
| 44 | /** |
||
| 45 | * Constructor of the class |
||
| 46 | * |
||
| 47 | * @param class-string $target |
||
| 48 | * @param int<1, max>|null $limit |
||
| 49 | */ |
||
| 50 | 18 | public function __construct(string $target, ?int $limit = null) |
|
| 56 |