Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
66.67% covered (warning)
66.67%
2 / 3
0.00% covered (danger)
0.00%
0 / 1
CRAP
0.00% covered (danger)
0.00%
0 / 1
ConcreteClasses
66.67% covered (warning)
66.67%
2 / 3
0.00% covered (danger)
0.00%
0 / 1
2.15
0.00% covered (danger)
0.00%
0 / 1
 __construct
66.67% covered (warning)
66.67%
2 / 3
0.00% covered (danger)
0.00%
0 / 1
2.15
1<?php
2namespace Apie\Core\Attributes;
3
4use Attribute;
5
6#[Attribute(Attribute::TARGET_CLASS|Attribute::IS_REPEATABLE)]
7class ConcreteClasses
8{
9    /** @var array<string> $classes */
10    public readonly array $classes;
11    public function __construct(string... $classes)
12    {
13        if (empty($classes)) {
14            throw new \LogicException('There should be at least one defined class');
15        }
16        $this->classes = $classes;
17    }
18}