You are here

public function EasyRdf_Literal::__toString in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/easyrdf/easyrdf/lib/EasyRdf/Literal.php \EasyRdf_Literal::__toString()

Magic method to return the value of a literal as a string

Return value

string The value of the literal

File

vendor/easyrdf/easyrdf/lib/EasyRdf/Literal.php, line 304

Class

EasyRdf_Literal
Class that represents an RDF Literal

Code

public function __toString() {
  return isset($this->value) ? $this->value : '';
}