add/change docs

This commit is contained in:
Dennis Eichhorn 2021-08-29 10:55:43 +02:00
parent c2115464a5
commit cddd525926
2 changed files with 30 additions and 1 deletions

View File

@ -36,12 +36,39 @@ class Ticket
*/
protected int $id = 0;
/**
* The ticket is using a task.
*
* @var Task
* @since 1.0.0
*/
public Task $task;
/**
* App this ticket belongs to.
*
* @var SupportApp
* @since 1.0.0
*/
public SupportApp $app;
/**
* Ticket elements.
*
* @var TicketElement[]
* @since 1.0.0
*/
private array $ticketElements = [];
/**
* Account this ticket is for
*
* This is not the person who is working on the ticket but the person who needs help.
* This can be different from the person who created it.
*
* @var null|Account
* @since 1.0.0
*/
public ?Account $for = null;
/**
@ -55,6 +82,8 @@ class Ticket
/**
* Constructor.
*
* @param null|Task $task Creates the ticket from a task
*
* @since 1.0.0
*/
public function __construct(Task $task = null)

View File

@ -61,7 +61,7 @@ class TicketElement implements \JsonSerializable
/**
* Constructor.
*
* @param null|TaskElement $taskElement Task element
* @param null|TaskElement $taskElement Creates a ticket elmenet from a task element
*
* @since 1.0.0
*/