| Total Complexity | 2 |
| Total Lines | 56 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 0 | ||
| 1 | <?php |
||
| 9 | class ModelCollectionAsChildPrinter extends AbstractClassPrinter |
||
| 10 | { |
||
| 11 | public const CORE = 'kernel'; |
||
| 12 | |||
| 13 | protected string $model; |
||
| 14 | |||
| 15 | protected string $single; |
||
| 16 | |||
| 17 | protected string $plural; |
||
| 18 | |||
| 19 | protected string $type; |
||
| 20 | |||
| 21 | protected string $extends; |
||
| 22 | |||
| 23 | public function __construct( |
||
| 24 | string $extends, |
||
| 25 | string $model, |
||
| 26 | string $single, |
||
| 27 | string $plural, |
||
| 28 | string $namespace, |
||
| 29 | string $class, |
||
| 30 | string $type |
||
| 31 | ) { |
||
| 32 | parent::__construct($namespace, $class); |
||
| 33 | |||
| 34 | $this->extends = $extends; |
||
| 35 | $this->model = $model; |
||
| 36 | $this->single = $single; |
||
| 37 | $this->plural = $plural; |
||
| 38 | $this->type = $type; |
||
| 39 | } |
||
| 40 | |||
| 41 | protected function setupClass(PhpNamespace $namespace): object |
||
| 65 | } |
||
| 66 | } |
||
| 67 |