1 | <?php |
||
22 | class CaaRecord extends Record |
||
23 | { |
||
24 | /** @var string explicity authorizes a single certificate authority to issue a certificate (any type) for the hostname */ |
||
25 | const TAG_ISSUE = 'issue'; |
||
26 | /** @var string explicity authorizes a single certificate authority to issue a wildcard certificate (and only wildcard) for the hostname */ |
||
27 | const TAG_ISSUEWILD = 'issuewild'; |
||
28 | /** @var string specifies a URL to which a certificate authority may report policy violations */ |
||
29 | const TAG_IODEF = 'iodef'; |
||
30 | /** @var string проверка по FQDN */ |
||
31 | 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'; |
||
32 | |||
33 | /** |
||
34 | * @var Int |
||
35 | */ |
||
36 | protected $flags; |
||
37 | /** |
||
38 | * @var String |
||
39 | */ |
||
40 | protected $tag; |
||
41 | /** |
||
42 | * @var String |
||
43 | */ |
||
44 | protected $value; |
||
45 | |||
46 | /** |
||
47 | * CaaRecord constructor. |
||
48 | * |
||
49 | * @param Node $node |
||
50 | * @param $ttl |
||
51 | * @param int $flags |
||
52 | * @param string $tag |
||
53 | * @param string $value |
||
54 | */ |
||
55 | public function __construct(Node $node, $ttl, int $flags, string $tag, string $value) |
||
62 | |||
63 | /** |
||
64 | * @param $value |
||
65 | * |
||
66 | * @return string |
||
67 | */ |
||
68 | private function getFromQuotes(string $value) |
||
72 | |||
73 | /** |
||
74 | * @return string |
||
75 | */ |
||
76 | public function __toString(): string |
||
80 | |||
81 | /** |
||
82 | * @return Int |
||
83 | */ |
||
84 | public function getFlags(): Int |
||
88 | |||
89 | /** |
||
90 | * @param Int $flags |
||
91 | * |
||
92 | * @return CaaRecord |
||
93 | */ |
||
94 | public function setFlags(Int $flags): CaaRecord |
||
98 | |||
99 | /** |
||
100 | * @return String |
||
101 | */ |
||
102 | public function getTag(): String |
||
106 | |||
107 | /** |
||
108 | * @param String $tag |
||
109 | * |
||
110 | * @return CaaRecord |
||
111 | */ |
||
112 | public function setTag(String $tag): CaaRecord |
||
116 | |||
117 | /** |
||
118 | * @return String |
||
119 | */ |
||
120 | public function getValue(): String |
||
124 | |||
125 | /** |
||
126 | * @param String $value |
||
127 | * |
||
128 | * @return CaaRecord |
||
129 | */ |
||
130 | public function setValue(String $value): CaaRecord |
||
134 | |||
135 | /** |
||
136 | * @internal |
||
137 | * @return bool |
||
138 | */ |
||
139 | public function validate(): bool |
||
176 | |||
177 | /** |
||
178 | * @return array |
||
179 | */ |
||
180 | protected function recordDataToArray(): array |
||
188 | } |
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.