コード例 #1
0
ファイル: ApistFilter.php プロジェクト: noxify/apist
 /**
  * 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
ファイル: ApistMethod.php プロジェクト: pt-series/apist
 /**
  * @param string $content
  * @return $this
  */
 public function setContent($content)
 {
     $this->content = $content;
     $this->crawler->addContent($content);
     return $this;
 }