Passed
Push — master ( ea7d0c...20f36e )
by Marcel
09:46
created

TuitionResolvable   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 7
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 5
c 1
b 0
f 0
dl 0
loc 7
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A getTargets() 0 2 1
1
<?php
2
3
namespace App\Validator;
4
5
use Attribute;
6
use Symfony\Component\Validator\Constraint;
7
8
#[Attribute(Attribute::TARGET_CLASS)]
9
class TuitionResolvable extends Constraint {
10
    public string $notMatchedmessage = 'Lesson has no matching tuition (subject: {{ subject }}; teachers: {{ teachers }}; grades: {{ grades }}).';
11
    public string $ambiguousMessage = 'Ambiguous matching tuition (subject: {{ subject }}; teachers: {{ teachers }}; grades: {{ grades }}).';
12
13
    public function getTargets(): array|string {
14
        return self::CLASS_CONSTRAINT;
15
    }
16
}