Skip to content

Commit

Permalink
Adjusted to rdfInterface 0.6.0
Browse files Browse the repository at this point in the history
  • Loading branch information
zozlak committed Mar 19, 2021
1 parent 8e03a23 commit a114f43
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions src/rdfHelpers/DefaultGraph.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,8 @@

namespace rdfHelpers;

use BadMethodCallException;
use Stringable;
use rdfInterface\Term;
use rdfInterface\Term as iTerm;
use rdfInterface\DefaultGraph as iDefaultGraph;

/**
Expand All @@ -25,18 +24,14 @@ public function __construct() {
}

public function __toString(): string {
return $this->getType();
}

public function getType(): string {
return \rdfInterface\TYPE_DEFAULT_GRAPH;
return '__DefaultGraph__';
}

public function getValue(): int | float | string | bool | Stringable {
return '';
}

public function equals(Term $term): bool {
return $term->getType() === $this->getType();
public function equals(iTerm $term): bool {
return $term instanceof iDefaultGraph;
}
}

0 comments on commit a114f43

Please sign in to comment.