ValueObjects
Table of Contents
Classes
- AdvertHardDeletePlan
- Plan for the hard delete of an advert (Bazaar and Comcat): the advert and all dependent
data and files are deleted for good. Soft delete is a different operation (the `deleted`
toggle) and does not come here.
- CronFrequency
- Schedule of one cron job: every N minutes, daily, weekly, monthly or manual only. Pure value object — "is the job due?" depends only on the
schedule, the time of the last run and "now", so it is unit-testable without a clock.
- DateValue
- OpeningHours
- Opening hours: a typed value object over a JSON string stored in `AdvertParameterRel.value`.
- PriceFormat
- Resolved amount format: what is actually used when rendering.
- TreeConfig
- Configuration of a nested-set tree for move operations (`TreeTrait` across the model
layers). Holds the property names of the tree bounds and an optional scope filter that
tells apart separate trees in one table.
- TreeMoveExpectation
- Expected tree state from which the client (drag and drop in the admin grid) derived a move.
- TreeMovePlan
- Move of a node to a chosen position among the children of the target parent. Shared
translation of the choice "At the end / At the start / After item..." (the "Move to..." modal
in the admin grid and the position in the tree edit form) into `afterId` + the
{@see TreeMoveExpectation} contract.
- TreeStructure
- {@see TreeConfig} translated through the Doctrine metadata to DB names: the table, the
tree bound columns and the scope filter. Built in the mapper `TreeTrait` and passed
straight to the repository; as `mixed` in `Result::getData()` the types were lost.
Enums
- CronFrequencyType
- Kind of a cron job schedule.