add/change docs

This commit is contained in:
Dennis Eichhorn 2021-08-29 10:55:43 +02:00
parent c446dbf01e
commit 217e7b06c6

View File

@ -38,8 +38,20 @@ class Promotion
*/ */
protected int $id = 0; protected int $id = 0;
/**
* Start of the promotion.
*
* @var \DateTime
* @since 1.0.0
*/
private \DateTime $start; private \DateTime $start;
/**
* End of the promotion.
*
* @var \DateTime
* @since 1.0.0
*/
private \DateTime $end; private \DateTime $end;
/** /**
@ -58,18 +70,60 @@ class Promotion
*/ */
public string $description = ''; public string $description = '';
/**
* Calendar.
*
* @var Calendar
* @since 1.0.0
*/
private Calendar $calendar; private Calendar $calendar;
/**
* Costs.
*
* @var Money
* @since 1.0.0
*/
private Money $costs; private Money $costs;
/**
* Budget.
*
* @var Money
* @since 1.0.0
*/
private Money $budget; private Money $budget;
/**
* Earnings.
*
* @var Money
* @since 1.0.0
*/
private Money $earnings; private Money $earnings;
/**
* Media.
*
* @var Media[]
* @since 1.0.0
*/
private array $media = []; private array $media = [];
/**
* Progress (0-100).
*
* @var int
* @since 1.0.0
*/
private int $progress = 0; private int $progress = 0;
/**
* Progress type.
*
* @var int
* @since 1.0.0
*/
private int $progressType = ProgressType::MANUAL; private int $progressType = ProgressType::MANUAL;
/** /**
@ -88,6 +142,12 @@ class Promotion
*/ */
public Account $createdBy; public Account $createdBy;
/**
* Tasks.
*
* @var Task[]
* @since 1.0.0
*/
private array $tasks = []; private array $tasks = [];
/** /**