1 | <?php |
||
17 | class StringValueNode extends Rule implements ValueInterface |
||
18 | { |
||
19 | /** |
||
20 | * @var string |
||
21 | */ |
||
22 | private const UTF_SEQUENCE_PATTERN = '/(?<!\\\\)\\\\u([0-9a-f]{4})/ui'; |
||
23 | |||
24 | /** |
||
25 | * @var string |
||
26 | */ |
||
27 | private const CHAR_SEQUENCE_PATTERN = '/(?<!\\\\)\\\\(b|f|n|r|t)/u'; |
||
28 | |||
29 | /** |
||
30 | * @var string|null |
||
31 | */ |
||
32 | private $value; |
||
33 | |||
34 | /** |
||
35 | * @return string |
||
36 | */ |
||
37 | public function toPrimitive(): string |
||
45 | |||
46 | /** |
||
47 | * @return string |
||
48 | */ |
||
49 | private function getValue(): string |
||
53 | |||
54 | /** |
||
55 | * @return string |
||
56 | */ |
||
57 | private function parse(): string |
||
76 | |||
77 | /** |
||
78 | * @param string $value |
||
79 | * @return string |
||
80 | */ |
||
81 | private function encodeSlashes(string $value): string |
||
85 | |||
86 | /** |
||
87 | * Method for parsing and decode utf-8 character |
||
88 | * sequences like "\uXXXX" type. |
||
89 | * |
||
90 | * @see http://facebook.github.io/graphql/October2016/#sec-String-Value |
||
91 | * @param string $body |
||
92 | * @return string |
||
93 | */ |
||
94 | private function renderUtfSequences(string $body): string |
||
108 | |||
109 | /** |
||
110 | * @param string $body |
||
111 | * @return string |
||
112 | */ |
||
113 | private function forwardRenderUtfSequences(string $body): string |
||
117 | |||
118 | /** |
||
119 | * @param string $body |
||
120 | * @return string |
||
121 | */ |
||
122 | private function fallbackRenderUtfSequences(string $body): string |
||
136 | |||
137 | /** |
||
138 | * Method for parsing special control characters. |
||
139 | * |
||
140 | * @see http://facebook.github.io/graphql/October2016/#sec-String-Value |
||
141 | * @param string $body |
||
142 | * @return string |
||
143 | */ |
||
144 | private function renderSpecialCharacters(string $body): string |
||
167 | |||
168 | /** |
||
169 | * @param string $value |
||
170 | * @return string |
||
171 | */ |
||
172 | private function decodeSlashes(string $value): string |
||
176 | } |
||
177 |
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.