diff --git a/src/Element/DocumentElement.php b/src/Element/DocumentElement.php index c2daf6601..676c2b7f6 100644 --- a/src/Element/DocumentElement.php +++ b/src/Element/DocumentElement.php @@ -36,16 +36,4 @@ public function getContent() { return trim($this->getDriver()->getContent()); } - - /** - * Check whether document has specified content. - * - * @param string $content - * - * @return Boolean - */ - public function hasContent($content) - { - return $this->has('named', array('content', $content)); - } } diff --git a/src/Element/TraversableElement.php b/src/Element/TraversableElement.php index a5e05b999..72316128d 100644 --- a/src/Element/TraversableElement.php +++ b/src/Element/TraversableElement.php @@ -294,4 +294,16 @@ public function attachFileToField($locator, $path) $field->attachFile($path); } + + /** + * Check whether element has specified content. + * + * @param string $content + * + * @return Boolean + */ + public function hasContent($content) + { + return $this->has('named', array('content', $content)); + } }