WebviepTaxonomie
in package
FinalYes
Value object for WebVIEP taxonomies.
Table of Contents
Constants
- TOPIC = 'webviep_topic'
Properties
- $value : string
Methods
- __toString() : string
- String representation.
- available() : array<string|int, self>
- Available taxonomies.
- equals() : bool
- Compare taxonomy values.
- fromString() : self
- Create from arbitrary string.
- topic() : self
- Topic taxonomy factory.
- value() : string
- Raw taxonomy slug.
- __construct() : mixed
Constants
TOPIC
public
mixed
TOPIC
= 'webviep_topic'
Properties
$value
private
string
$value
Methods
__toString()
String representation.
public
__toString() : string
Return values
stringavailable()
Available taxonomies.
public
static available() : array<string|int, self>
Return values
array<string|int, self>equals()
Compare taxonomy values.
public
equals(self $other) : bool
Parameters
- $other : self
Return values
boolfromString()
Create from arbitrary string.
public
static fromString(string $value) : self
Parameters
- $value : string
Return values
selftopic()
Topic taxonomy factory.
public
static topic() : self
Return values
selfvalue()
Raw taxonomy slug.
public
value() : string
Return values
string__construct()
private
__construct(string $value) : mixed
Parameters
- $value : string
-
Taxonomy slug