Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 0 additions & 12 deletions src/Element/DocumentElement.php
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}
}
12 changes: 12 additions & 0 deletions src/Element/TraversableElement.php
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}
}