예제 #1
0
 /**
  * Guard string method to be called with Crawler object
  * @throws \InvalidArgumentException
  */
 protected function guardText()
 {
     if (is_object($this->node)) {
         $this->node = $this->node->text();
     }
 }
예제 #2
0
 /**
  * @param string $content
  * @return $this
  */
 public function setContent($content)
 {
     $this->content = $content;
     $this->crawler->addContent($content);
     return $this;
 }