/** * @return string */ public function getText() { return $this->crawler->getText($this->id); }
/** * @param CrawlerInterface $crawler * @param string $id * @param string $text * @return string */ public function text(CrawlerInterface $crawler, $id, $text) { return false !== mb_stripos($crawler->getText($id), (string) $text); }