1 | <?php |
||
10 | class Subject |
||
11 | { |
||
12 | |||
13 | /** |
||
14 | * @var string |
||
15 | */ |
||
16 | protected $contextDescription; |
||
17 | |||
18 | /** |
||
19 | * @var \DOMDocument |
||
20 | */ |
||
21 | protected $dom; |
||
22 | |||
23 | /** |
||
24 | * RuleSubject constructor. |
||
25 | * |
||
26 | * @param string $contextDescription |
||
27 | */ |
||
28 | 1 | public function __construct(string $contextDescription) |
|
32 | |||
33 | /** |
||
34 | * Get subject context description |
||
35 | * |
||
36 | * @return string Subject context description |
||
37 | */ |
||
38 | 1 | public function getContextDescription(): string |
|
42 | |||
43 | /** |
||
44 | * Set DOM in subject |
||
45 | * |
||
46 | * @param \DOMDocument $dom |
||
47 | */ |
||
48 | 1 | public function setDom(\DOMDocument $dom) |
|
52 | |||
53 | /** |
||
54 | * Get subject DOM |
||
55 | * |
||
56 | * @return \DOMDocument |
||
57 | */ |
||
58 | 1 | public function getDom(): \DOMDocument |
|
62 | } |
||
63 |