public function EasyRdf_Literal_Boolean::getValue

Return the value of the literal cast to a PHP bool

If the value is 'true' or '1' return true, otherwise returns false.

Return value

bool

Overrides EasyRdf_Literal::getValue

File

drupal/core/vendor/easyrdf/easyrdf/lib/EasyRdf/Literal/Boolean.php, line 72

Class

EasyRdf_Literal_Boolean
Class that represents an RDF Literal of datatype xsd:boolean

Code

public function getValue() {
  return strtolower($this->value) === 'true' or $this->value === '1';
}