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 | * @return string |
||
31 | */ |
||
32 | public function toString(): string |
||
44 | |||
45 | /** |
||
46 | * @return string |
||
47 | */ |
||
48 | public function toPrimitive(): string |
||
52 | |||
53 | /** |
||
54 | * @return string |
||
55 | */ |
||
56 | private function getValue(): string |
||
60 | |||
61 | /** |
||
62 | * @return string |
||
63 | */ |
||
64 | private function parse(): string |
||
83 | |||
84 | /** |
||
85 | * @param string $value |
||
86 | * @return string |
||
87 | */ |
||
88 | private function encodeSlashes(string $value): string |
||
92 | |||
93 | /** |
||
94 | * Method for parsing and decode utf-8 character |
||
95 | * sequences like "\uXXXX" type. |
||
96 | * |
||
97 | * @see http://facebook.github.io/graphql/October2016/#sec-String-Value |
||
98 | * @param string $body |
||
99 | * @return string |
||
100 | */ |
||
101 | private function renderUtfSequences(string $body): string |
||
115 | |||
116 | /** |
||
117 | * @param string $body |
||
118 | * @return string |
||
119 | */ |
||
120 | private function forwardRenderUtfSequences(string $body): string |
||
124 | |||
125 | /** |
||
126 | * @param string $body |
||
127 | * @return string |
||
128 | */ |
||
129 | private function fallbackRenderUtfSequences(string $body): string |
||
143 | |||
144 | /** |
||
145 | * Method for parsing special control characters. |
||
146 | * |
||
147 | * @see http://facebook.github.io/graphql/October2016/#sec-String-Value |
||
148 | * @param string $body |
||
149 | * @return string |
||
150 | */ |
||
151 | private function renderSpecialCharacters(string $body): string |
||
174 | |||
175 | /** |
||
176 | * @param string $value |
||
177 | * @return string |
||
178 | */ |
||
179 | private function decodeSlashes(string $value): string |
||
183 | } |
||
184 |
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.