Lines 100.00% 2 / 2
Functions and Methods 100.00% 2 / 2
Classes and Traits 100.00% 1 / 1
Name Lines Functions and Methods CRAP Classes and Traits
UnseenAttribute 100.00% 2 / 2 100.00% 2 / 2 2 100.00% 1 / 1
 __construct 100.00% 1 / 1 100.00% 1 / 1 1
 describeWarning 100.00% 1 / 1 100.00% 1 / 1 1
1<?php
2
3declare(strict_types=1);
4
5namespace Stewart\Codegen\Attribute;
6
7use Stewart\Codegen\Model\GenerationWarning;
8
9final readonly class UnseenAttribute implements GenerationWarning
10{
11    public function __construct(
12        public string $domain,
13        public string $key,
14    ) {}
15
16    public function describeWarning(): string
17    {
18        return \sprintf('No %s entity reports the included attribute %s.', $this->domain, $this->key);
19    }
20}