Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
CRAP | |
100.00% |
1 / 1 |
| AllArgsConstructor | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |
100.00% |
1 / 1 |
| __construct | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| 1 | <?php |
| 2 | /** |
| 3 | * AllArgsConstructor class implementation file |
| 4 | * @package Code\Simplify |
| 5 | * @author Felipe Gaspar <felipesouzalimagaspar@gmail.com> |
| 6 | */ |
| 7 | declare(strict_types=1); |
| 8 | namespace Code\Simplify; |
| 9 | |
| 10 | #[\Attribute(\Attribute::TARGET_CLASS)] |
| 11 | /** |
| 12 | * Implements a constructor method with all attributes in the order of their declaration |
| 13 | * @final |
| 14 | */ |
| 15 | final class AllArgsConstructor extends Constructor { |
| 16 | public function __construct() { |
| 17 | parent::__construct(false, true); |
| 18 | } |
| 19 | } |