Lines Matching refs:content
18 protected $content = [];
20 /** @var string For text nodes, this contains the node's text content. */
50 $this->content[] = $child;
123 } elseif ($this->content) {
124 $json['content'] = $this->content;
143 return !empty($this->content);
147 * Trim all whitespace from the beginning of this node's content
151 * If the first node in the content is afterwards only an empty string, then it is removed
157 $this->content[0]->trimContentLeft();
158 if ($this->content[0]->getText() === '') {
159 array_shift($this->content);
169 * Trim all whitespace from the end of this node's content
173 * If the last node in the content is afterwards only an empty string, then it is removed
179 $contentLength = count($this->content) - 1;
180 $this->content[$contentLength]->trimContentRight();
181 if ($this->content[$contentLength]->getText() === '') {
182 array_pop($this->content);