DoDomuDojade Documentation

Countdown
in package

Countdown entity

Table of Contents

Properties

$countTo  : DateTimeImmutable
$id  : int|null
$title  : string
$userId  : int
$events  : array<string|int, DomainEvent>

Methods

__construct()  : mixed
assignId()  : void
clearDomainEvents()  : void
getDomainEvents()  : array<string|int, DomainEvent>
markCreated()  : void
markDeleted()  : void
updateDetails()  : void
recordEvent()  : void

Properties

Methods

__construct()

public __construct(int|null $id, string $title, DateTimeImmutable $countTo, int $userId) : mixed
Parameters
$id : int|null
$title : string
$countTo : DateTimeImmutable
$userId : int

assignId()

public assignId(int $id) : void
Parameters
$id : int

clearDomainEvents()

public clearDomainEvents() : void

updateDetails()

public updateDetails(string $title, DateTimeImmutable $countTo, int $userId) : void
Parameters
$title : string
$countTo : DateTimeImmutable
$userId : int

        
On this page

Search results