Conditions | 4 |
Paths | 4 |
Total Lines | 10 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php declare(strict_types=1); |
||
16 | public function __construct(string $name, string $type, bool $required, string $table = '') |
||
17 | { |
||
18 | $name = $this->getInflector()->camelProperty($name); |
||
19 | $setter = $this->getInflector()->pascalProperty($name); |
||
20 | $type = $type !== 'self' ? $this->getInflector()->entity($type) : $type; |
||
21 | $typeName = $type !== 'self' |
||
22 | ? $this->getInflector()->camelProperty($type) |
||
23 | : $this->getInflector()->camelProperty($this->getInflector()->entity($table ?: $type)); |
||
24 | |||
25 | parent::__construct(\compact('name', 'setter', 'type', 'typeName', 'required')); |
||
26 | } |
||
38 |