DoDomuDojade Documentation

Quote
in package

Quote entity

Table of Contents

Properties

$author  : string
$fetchedOn  : DateTimeImmutable
$id  : int|null
$quote  : string
$events  : array<string|int, DomainEvent>

Methods

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

Properties

$author read-only

public string $author

$fetchedOn read-only

public DateTimeImmutable $fetchedOn

$id

public private(set) int|null $id

$quote read-only

public string $quote

Methods

__construct()

public __construct(int|null $id, string $quote, string $author, DateTimeImmutable $fetchedOn) : mixed
Parameters
$id : int|null
$quote : string
$author : string
$fetchedOn : DateTimeImmutable

assignId()

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

clearDomainEvents()

public clearDomainEvents() : void

markCreated()

public markCreated() : void

        
On this page

Search results