Documentation

QuadTemplate
in package
implements TermCompareInterface, QuadCompareInterface

Description of QuadTemplate

Tags
author

zozlak

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

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
string

withNegate()

public withNegate(bool $negate) : self
Parameters
$negate : bool
Return values
self

        
On this page

Search results