Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
CRAP | |
100.00% |
1 / 1 |
| Labels | |
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 | declare(strict_types=1); |
| 4 | |
| 5 | namespace Cosray\Schema; |
| 6 | |
| 7 | use Attribute; |
| 8 | |
| 9 | /** |
| 10 | * Keeps the sub-field labels of a block type. A block with a single |
| 11 | * visible field renders it without its label, since the block already |
| 12 | * says what it is; a type that wants them back declares this. |
| 13 | */ |
| 14 | #[Attribute(Attribute::TARGET_CLASS)] |
| 15 | class Labels |
| 16 | { |
| 17 | public function __construct( |
| 18 | public readonly bool $value = true, |
| 19 | ) {} |
| 20 | } |