Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
n/a
0 / 0
n/a
0 / 0
CRAP
n/a
0 / 0
Task
n/a
0 / 0
n/a
0 / 0
0
n/a
0 / 0
1<?php
2/**
3 * Task Entity.
4 *
5 * @package automattic/jetpack-crm
6 */
7
8namespace Automattic\Jetpack\CRM\Entities;
9
10/**
11 * Task class.
12 *
13 * Note that DAL and the database currently use the legacy term `event` instead
14 * of `task`, but to match the UI and to prevent confusion with the Automations
15 * Event Manager, we'll be using `task` here.
16 */
17class Task {
18    /**
19     * The ID of the task as found in the database.
20     *
21     * @var int
22     */
23    public $id = -1;
24
25    /**
26     * The WP user ID for the user that owns the task.
27     *
28     * @var int
29     */
30    public $owner = -1;
31
32    /**
33     * The task tags.
34     *
35     * @var array
36     */
37    public $tags = array();
38
39    /**
40     * The task title.
41     *
42     * @var string
43     */
44    public $title = '';
45
46    /**
47     * The task description.
48     *
49     * @var string
50     */
51    public $desc = '';
52
53    /**
54     * Unix timestamp of task start.
55     *
56     * @var int|null
57     */
58    public $start = null;
59
60    /**
61     * Unix timestamp of task end.
62     *
63     * @var int|null
64     */
65    public $end = null;
66
67    /**
68     * Whether task has been completed or not.
69     *
70     * @var bool
71     */
72    public $complete = false;
73
74    /**
75     * Whether task should show in portal.
76     *
77     * @var bool
78     */
79    public $show_on_portal = false;
80
81    /**
82     * Whether task should show in calendar.
83     *
84     * @var bool
85     */
86    public $show_on_calendar = false;
87
88    /**
89     * Unix timestamp of task creation.
90     *
91     * @var int|null
92     */
93    public $created = null;
94
95    /**
96     * Unix timestamp of task last update.
97     *
98     * @var int|null
99     */
100    public $lastupdated = null;
101}