1 | <?php |
||
17 | class CaaRecord extends Record |
||
18 | { |
||
19 | /** @var string explicity authorizes a single certificate authority to issue a certificate (any type) for the hostname */ |
||
20 | const TAG_ISSUE = 'issue'; |
||
21 | /** @var string explicity authorizes a single certificate authority to issue a wildcard certificate (and only wildcard) for the hostname */ |
||
22 | const TAG_ISSUEWILD = 'issuewild'; |
||
23 | /** @var string specifies a URL to which a certificate authority may report policy violations */ |
||
24 | const TAG_IODEF = 'iodef'; |
||
25 | /** @var string проверка по FQDN */ |
||
26 | const PATTERN_FQDN = '/^([a-zа-яё0-9\_]([a-zа-яё0-9\-]{0,61}[a-zа-яё0-9])?\.)*([a-zа-яё0-9]([a-zа-яё0-9\-]{0,61}[a-zа-яё0-9])?\.)+[a-zа-яё0-9-]{2,30}$/i'; |
||
27 | |||
28 | /** |
||
29 | * @var Int |
||
30 | */ |
||
31 | protected $flags; |
||
32 | /** |
||
33 | * @var String |
||
34 | */ |
||
35 | protected $tag; |
||
36 | /** |
||
37 | * @var String |
||
38 | */ |
||
39 | protected $value; |
||
40 | |||
41 | /** |
||
42 | * CaaRecord constructor. |
||
43 | * |
||
44 | * @param Node $node |
||
45 | * @param $ttl |
||
46 | * @param int $flags |
||
47 | * @param string $tag |
||
48 | * @param string $value |
||
49 | */ |
||
50 | public function __construct(Node $node, $ttl, int $flags, string $tag, string $value) |
||
57 | |||
58 | /** |
||
59 | * @param $value |
||
60 | * |
||
61 | * @return string |
||
62 | */ |
||
63 | private function getFromQuotes(string $value) |
||
67 | |||
68 | /** |
||
69 | * @return string |
||
70 | */ |
||
71 | public function __toString(): string |
||
75 | |||
76 | /** |
||
77 | * @return Int |
||
78 | */ |
||
79 | public function getFlags(): Int |
||
83 | |||
84 | /** |
||
85 | * @param Int $flags |
||
86 | * |
||
87 | * @return CaaRecord |
||
88 | */ |
||
89 | public function setFlags(Int $flags): CaaRecord |
||
93 | |||
94 | /** |
||
95 | * @return String |
||
96 | */ |
||
97 | public function getTag(): String |
||
101 | |||
102 | /** |
||
103 | * @param String $tag |
||
104 | * |
||
105 | * @return CaaRecord |
||
106 | */ |
||
107 | public function setTag(String $tag): CaaRecord |
||
111 | |||
112 | /** |
||
113 | * @return String |
||
114 | */ |
||
115 | public function getValue(): String |
||
119 | |||
120 | /** |
||
121 | * @param String $value |
||
122 | * |
||
123 | * @return CaaRecord |
||
124 | */ |
||
125 | public function setValue(String $value): CaaRecord |
||
129 | |||
130 | /** |
||
131 | * @internal |
||
132 | * @return bool |
||
133 | */ |
||
134 | public function validate(): bool |
||
171 | |||
172 | /** |
||
173 | * @return array |
||
174 | */ |
||
175 | protected function recordDataToArray(): array |
||
183 | } |
This check marks calls to methods that do not seem to exist on an object.
This is most likely the result of a method being renamed without all references to it being renamed likewise.