-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathOptionsModel.php
36 lines (27 loc) · 1.09 KB
/
OptionsModel.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<?php
namespace RMValidator\Options;
use RMValidator\Enums\SeverityEnum;
use RMValidator\Enums\ValidationOrderEnum;
final class OptionsModel {
public function __construct(private array $orderOfValidation = [ValidationOrderEnum::PROPERTIES, ValidationOrderEnum::METHODS, ValidationOrderEnum::CONSTANTS],
private array $excludedMethods = [],
private array $excludedProperties = [],
private array $orAttributes = [],
private string $globalSeverityLevel = SeverityEnum::ERROR)
{}
public function getOrderOfValidation() : array {
return $this->orderOfValidation;
}
public function getExcludedMethods() : array {
return $this->excludedMethods;
}
public function getExcludedProperties() : array {
return $this->excludedProperties;
}
public function getOrAttributes() : array {
return $this->orAttributes;
}
public function getGlobalSeverityLevel() : int {
return $this->globalSeverityLevel;
}
}