Total Complexity | 4 |
Total Lines | 32 |
Duplicated Lines | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
14 | final class SimpleForm implements RulesProviderInterface, AttributeTranslatorProviderInterface |
||
15 | { |
||
16 | public function __construct( |
||
17 | public string $name = '', |
||
18 | public string $mail = '', |
||
19 | ) { |
||
20 | } |
||
21 | |||
22 | /** |
||
23 | * @psalm-return array<string, string> |
||
24 | */ |
||
25 | public function getAttributeLabels(): array |
||
26 | { |
||
27 | return [ |
||
28 | 'name' => 'Имя', |
||
29 | 'mail' => 'Почта', |
||
30 | ]; |
||
31 | } |
||
32 | |||
33 | public function getAttributeTranslator(): ?AttributeTranslatorInterface |
||
36 | } |
||
37 | |||
38 | public function getRules(): array |
||
46 | ], |
||
47 | ]; |
||
50 |