Lines Matching defs:text
60 * text is explicitly set in the constructor or via {@see CommonToken::setText()}.
66 protected $text;
136 * token will share a reference to the {@see CommonToken::text()} field and
138 * {@see CommonToken::text()} will be assigned the result of calling
151 $token->setText($this->text);
178 if ($this->text !== null) {
179 return $this->text;
198 * Explicitly set the text for this token. If `text` is not `null`, then
200 * extracting the text from the input.
202 * @param string $text The explicit text of the token, or `null`
203 * if the text should be obtained from the input
206 public function setText(?string $text) : void
208 $this->text = $text;