AnnouncementId
in package
Read onlyYes
FinalYes
AnnouncementId ValueObject
Table of Contents
Properties
- $id : string
Methods
- __construct() : mixed
- __toString() : string
- Stringifies id
- generate() : self
- Generates a new id for an announcement
- getValue() : string
- Returns id
Properties
$id
private
string
$id
Methods
__construct()
public
__construct(string $id) : mixed
Parameters
- $id : string
__toString()
Stringifies id
public
__toString() : string
Return values
stringgenerate()
Generates a new id for an announcement
public
static generate() : self
Return values
selfgetValue()
Returns id
public
getValue() : string