NumericTemplate
extends ValueTemplate
in package
Description of AnyNamedNode
Tags
Table of Contents
Constants
- ANY = 'any'
- CONTAINS = 'contains'
- ENDS = 'ends'
- EQUALS = '=='
- GREATER = '>'
- GREATER_EQUAL = '>='
- LOWER = '<'
- LOWER_EQUAL = '<='
- NOT_EQUALS = '!='
- REGEX = 'regex'
- STARTS = 'starts'
Properties
- $fvalue : float|null
- $matchMode : string
- $value : array<string|int, string>
- $fn : callable
- $numericTypes : array<string|int, string>
- $strict : bool
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
$fvalue
protected
float|null
$fvalue
$matchMode
protected
string
$matchMode
$value
protected
array<string|int, string>
$value
= []
$fn
private
callable
$fn
$numericTypes
private
static array<string|int, string>
$numericTypes
= [\zozlak\RdfConstants::XSD_INTEGER, \zozlak\RdfConstants::XSD_DECIMAL, \zozlak\RdfConstants::XSD_BYTE, \zozlak\RdfConstants::XSD_SHORT, \zozlak\RdfConstants::XSD_INT, \zozlak\RdfConstants::XSD_LONG, \zozlak\RdfConstants::XSD_FLOAT, \zozlak\RdfConstants::XSD_DOUBLE, \zozlak\RdfConstants::XSD_G_DAY, \zozlak\RdfConstants::XSD_G_MONTH, \zozlak\RdfConstants::XSD_G_YEAR, \zozlak\RdfConstants::XSD_NEGATIVE_INTEGER, \zozlak\RdfConstants::XSD_NON_NEGATIVE_INTEGER, \zozlak\RdfConstants::XSD_NON_POSITIVE_INTEGER, \zozlak\RdfConstants::XSD_POSITIVE_INTEGER, \zozlak\RdfConstants::XSD_UNSIGNED_BYTE, \zozlak\RdfConstants::XSD_UNSIGNED_SHORT, \zozlak\RdfConstants::XSD_UNSIGNED_INT, \zozlak\RdfConstants::XSD_UNSIGNED_LONG]
$strict
private
bool
$strict
Methods
__construct()
public
__construct([float|null $value = null ][, string $matchMode = self::EQUALS ][, bool $strict = false ]) : mixed
Parameters
- $value : float|null = null
-
If multiple values are provided, the comparison result will be "any of comparisons equals true"
- $matchMode : string = self::EQUALS
- $strict : 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 $term) : bool
Parameters
- $term : TermCompareInterface