1 | <?php |
||
10 | class Result |
||
11 | { |
||
12 | |||
13 | /** |
||
14 | * @var string |
||
15 | */ |
||
16 | protected $context; |
||
17 | |||
18 | /** |
||
19 | * @var string |
||
20 | */ |
||
21 | protected $description; |
||
22 | |||
23 | /** |
||
24 | * RuleResult constructor. |
||
25 | * |
||
26 | * @param string $context |
||
27 | * @param string $description |
||
28 | */ |
||
29 | 1 | public function __construct(string $context, string $description) |
|
34 | |||
35 | /** |
||
36 | * Get result context |
||
37 | * |
||
38 | * @return string Result context |
||
39 | */ |
||
40 | 1 | public function getContext() |
|
44 | |||
45 | /** |
||
46 | * Get result description |
||
47 | * |
||
48 | * @return string Result description |
||
49 | */ |
||
50 | 1 | public function getDescription() |
|
54 | } |
||
55 |