| Conditions | 1 |
| Paths | 1 |
| Total Lines | 14 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 2 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 17 | public function __construct( |
||
| 18 | string $name, |
||
| 19 | ?array $fields, |
||
| 20 | object $model, |
||
| 21 | object $repository, |
||
| 22 | string $updateMethod, |
||
| 23 | ?string $commitMethod = null |
||
| 24 | ) { |
||
| 25 | parent::__construct($name, $fields); |
||
| 26 | |||
| 27 | $this->model = $model; |
||
| 28 | $this->repository = $repository; |
||
| 29 | $this->updateMethod = $updateMethod; |
||
| 30 | $this->commitMethod = $commitMethod; |
||
| 31 | } |
||
| 48 |