QuadInterface
extends
TermInterface, QuadCompareInterface
in
Extends Term because of RDF*
Remarks:
- getValue() should throw an error
- null return types in getSubject(), getPredicate() and getObject() make it possible for QuadTemplate to extend this interface
Tags
Table of Contents
- __construct() : mixed
- __toString() : string
- equals() : bool
- getGraph() : NamedNodeInterface|BlankNodeInterface|DefaultGraphInterface
- Null is not allowed to deal with the ambiguity between DefaultGraph and null which mean the same (although it should be noted that all quads in NamedNode/BlankNode graphs also belong to the DefaultGraph).
- getObject() : TermInterface
- getPredicate() : NamedNodeInterface
- getSubject() : TermInterface
- getValue() : mixed
- withGraph() : QuadInterface
- withObject() : QuadInterface
- withPredicate() : QuadInterface
- withSubject() : QuadInterface
Methods
__construct()
public
__construct(TermInterface $subject, NamedNodeInterface $predicate, TermInterface $object[, NamedNodeInterface|BlankNodeInterface|DefaultGraphInterface|null $graph = null ]) : mixed
Parameters
- $subject : TermInterface
- $predicate : NamedNodeInterface
- $object : TermInterface
- $graph : NamedNodeInterface|BlankNodeInterface|DefaultGraphInterface|null = null
Tags
Return values
mixed —__toString()
public
__toString() : string
Tags
Return values
string —equals()
public
equals(TermInterface $term) : bool
Parameters
- $term : TermInterface
Tags
Return values
bool —getGraph()
Null is not allowed to deal with the ambiguity between DefaultGraph and null which mean the same (although it should be noted that all quads in NamedNode/BlankNode graphs also belong to the DefaultGraph).
public
getGraph() : NamedNodeInterface|BlankNodeInterface|DefaultGraphInterface
Tags
Return values
NamedNodeInterface|BlankNodeInterface|DefaultGraphInterface —getObject()
public
getObject() : TermInterface
Tags
Return values
TermInterface —getPredicate()
public
getPredicate() : NamedNodeInterface
Tags
Return values
NamedNodeInterface —getSubject()
public
getSubject() : TermInterface
Tags
Return values
TermInterface —getValue()
public
getValue() : mixed
Tags
Return values
mixed —withGraph()
public
withGraph(NamedNodeInterface|BlankNodeInterface|DefaultGraphInterface|null $graph) : QuadInterface
Parameters
- $graph : NamedNodeInterface|BlankNodeInterface|DefaultGraphInterface|null
Tags
Return values
QuadInterface —withObject()
public
withObject(TermInterface $object) : QuadInterface
Parameters
- $object : TermInterface
Tags
Return values
QuadInterface —withPredicate()
public
withPredicate(NamedNodeInterface $predicate) : QuadInterface
Parameters
- $predicate : NamedNodeInterface
Tags
Return values
QuadInterface —withSubject()
public
withSubject(TermInterface $subject) : QuadInterface
Parameters
- $subject : TermInterface