Conditions | 1 |
Paths | 1 |
Total Lines | 8 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Tests | 2 |
CRAP Score | 1 |
Changes | 0 |
1 | <?php declare(strict_types=1); |
||
17 | public function __construct(SchemaInterface $schema, string $action) |
||
18 | { |
||
19 | 7 | $entity = $this->getPascalCase($this->getSingularize($schema->name())); |
|
20 | $action = $this->getPascalCase($action); |
||
21 | 7 | $name = $this->getDashCase($this->getSingularize($schema->name())); |
|
22 | $pkName = $this->getCamelCase($schema->pkName()); |
||
23 | |||
24 | parent::__construct(\compact('entity', 'action', 'name', 'pkName')); |
||
25 | } |
||
42 |