Topic
in package
FinalYes
Domain entity representing a topic taxonomy term.
Table of Contents
Properties
Methods
- __construct() : mixed
- Topic constructor.
- id() : TopicId
- Topic identifier.
- isActive() : bool
- Whether the topic is active.
- name() : string
- Topic display name.
Properties
$active
private
bool
$active
$id
private
TopicId
$id
$name
private
string
$name
Methods
__construct()
Topic constructor.
public
__construct(TopicId $id, string $name[, bool $active = true ]) : mixed
Parameters
- $id : TopicId
- $name : string
- $active : bool = true
id()
Topic identifier.
public
id() : TopicId
Return values
TopicIdisActive()
Whether the topic is active.
public
isActive() : bool
Return values
boolname()
Topic display name.
public
name() : string