diff --git a/Models/Ticket.php b/Models/Ticket.php index 8383a7c..beb607e 100755 --- a/Models/Ticket.php +++ b/Models/Ticket.php @@ -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) diff --git a/Models/TicketElement.php b/Models/TicketElement.php index 1b43760..e374547 100644 --- a/Models/TicketElement.php +++ b/Models/TicketElement.php @@ -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 */