ValueTemplate
in package
implements
TermCompareInterface
Description of AnyNamedNode
Tags
Table of Contents
Interfaces
- TermCompareInterface
- Description of TermCompare
Constants
- ANY = 'any'
- CONTAINS = 'contains'
- ENDS = 'ends'
- EQUALS = '=='
- GREATER = '>'
- GREATER_EQUAL = '>='
- LOWER = '<'
- LOWER_EQUAL = '<='
- NOT_EQUALS = '!='
- REGEX = 'regex'
- STARTS = 'starts'
Properties
- $matchMode : string
- $value : array<string|int, string>
- $fn : callable
Methods
- __construct() : mixed
- __toString() : string
- Should return:
- equals() : bool
Constants
ANY
public
mixed
ANY
= 'any'
CONTAINS
public
mixed
CONTAINS
= 'contains'
ENDS
public
mixed
ENDS
= 'ends'
EQUALS
public
mixed
EQUALS
= '=='
GREATER
public
mixed
GREATER
= '>'
GREATER_EQUAL
public
mixed
GREATER_EQUAL
= '>='
LOWER
public
mixed
LOWER
= '<'
LOWER_EQUAL
public
mixed
LOWER_EQUAL
= '<='
NOT_EQUALS
public
mixed
NOT_EQUALS
= '!='
REGEX
public
mixed
REGEX
= 'regex'
STARTS
public
mixed
STARTS
= 'starts'
Properties
$matchMode
protected
string
$matchMode
$value
protected
array<string|int, string>
$value
= []
$fn
private
callable
$fn
Methods
__construct()
public
__construct([string|array<string|int, string>|null $value = null ][, string $matchMode = self::EQUALS ]) : mixed
Parameters
- $value : string|array<string|int, string>|null = null
-
If multiple values are provided, the comparison result will be "any of comparisons equals true"
- $matchMode : string = self::EQUALS
Tags
__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 $term) : bool
Parameters
- $term : TermCompareInterface