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

TuitionResolvable::getTargets()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 2
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 2
rs 10
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
}