Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
CRAP | |
100.00% |
1 / 1 |
ResourceName | |
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 | namespace Apie\Core\Attributes; |
3 | |
4 | use Attribute; |
5 | |
6 | /** |
7 | * Add this attribute to tell Apie how it should name this class without namespace. |
8 | */ |
9 | #[Attribute(Attribute::TARGET_CLASS)] |
10 | final class ResourceName |
11 | { |
12 | public function __construct(public string $name) |
13 | { |
14 | } |
15 | } |