QuadTemplate
in package
implements
TermCompareInterface, QuadCompareInterface
Description of QuadTemplate
Tags
Table of Contents
Interfaces
- TermCompareInterface
- Description of TermCompare
- QuadCompareInterface
- Interface allowing to compare Quads.
Properties
- $graph : TermCompareInterface|null
- $negate : bool
- $object : TermCompareInterface|null
- $predicate : TermCompareInterface|null
- $subject : TermCompareInterface|null
Methods
- __construct() : mixed
- __toString() : string
- Should return:
- equals() : bool
- getGraph() : TermCompareInterface|null
- getObject() : TermCompareInterface|null
- getPredicate() : TermCompareInterface|null
- getSubject() : TermCompareInterface|null
- withGraph() : self
- withNegate() : self
- withObject() : self
- withPredicate() : self
- withSubject() : self
Properties
$graph
private
TermCompareInterface|null
$graph
$negate
private
bool
$negate
$object
private
TermCompareInterface|null
$object
$predicate
private
TermCompareInterface|null
$predicate
$subject
private
TermCompareInterface|null
$subject
Methods
__construct()
public
__construct([TermCompareInterface|string|null $subject = null ][, TermCompareInterface|string|null $predicate = null ][, TermCompareInterface|string|null $object = null ][, TermCompareInterface|string|null $graph = null ][, bool $negate = false ]) : mixed
Parameters
- $subject : TermCompareInterface|string|null = null
- $predicate : TermCompareInterface|string|null = null
- $object : TermCompareInterface|string|null = null
- $graph : TermCompareInterface|string|null = null
- $negate : bool = false
__toString()
Should return:
public
__toString() : string
- an URI for named nodes and blank nodes
- a value in lexical form for literals
For all other kind of terms the return value depends on the implementation
Return values
stringequals()
public
equals(TermCompareInterface $quad) : bool
Parameters
- $quad : TermCompareInterface
Return values
boolgetGraph()
public
getGraph() : TermCompareInterface|null
Return values
TermCompareInterface|nullgetObject()
public
getObject() : TermCompareInterface|null
Return values
TermCompareInterface|nullgetPredicate()
public
getPredicate() : TermCompareInterface|null
Return values
TermCompareInterface|nullgetSubject()
public
getSubject() : TermCompareInterface|null
Return values
TermCompareInterface|nullwithGraph()
public
withGraph([TermCompareInterface|string|null $graph = null ]) : self
Parameters
- $graph : TermCompareInterface|string|null = null
Return values
selfwithNegate()
public
withNegate(bool $negate) : self
Parameters
- $negate : bool
Return values
selfwithObject()
public
withObject([TermCompareInterface|string|null $object = null ]) : self
Parameters
- $object : TermCompareInterface|string|null = null
Return values
selfwithPredicate()
public
withPredicate([TermCompareInterface|string|null $predicate = null ]) : self
Parameters
- $predicate : TermCompareInterface|string|null = null
Return values
selfwithSubject()
public
withSubject([TermCompareInterface|string|null $subject = null ]) : self
Parameters
- $subject : TermCompareInterface|string|null = null