Completed
Branch develop-3.0 (48060b)
by Mohamed
02:47
created

Activity::updater()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 1
1
<?php
2
3
/*
4
 * This file is part of the Tinyissue package.
5
 *
6
 * (c) Mohamed Alsharaf <[email protected]>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace Tinyissue\Model;
13
14
/**
15
 * Activity is model class for activities.
16
 *
17
 * @author Mohamed Alsharaf <[email protected]>
18
 *
19
 * @property int    $id
20
 * @property string $description
21
 * @property string $activity
22
 */
23
class Activity extends ModelAbstract
24
{
25
    /**
26
     * Activity Id: create issue.
27
     *
28
     * @var int
29
     */
30
    const TYPE_CREATE_ISSUE = 1;
31
32
    /**
33
     * Activity Id: add comment to an issue.
34
     *
35
     * @var int
36
     */
37
    const TYPE_COMMENT = 2;
38
39
    /**
40
     * Activity Id: close issue.
41
     *
42
     * @var int
43
     */
44
    const TYPE_CLOSE_ISSUE = 3;
45
46
    /**
47
     * Activity Id: reopen issue.
48
     *
49
     * @var int
50
     */
51
    const TYPE_REOPEN_ISSUE = 4;
52
53
    /**
54
     * Activity Id: re-assign issue.
55
     *
56
     * @var int
57
     */
58
    const TYPE_REASSIGN_ISSUE = 5;
59
60
    /**
61
     * Activity Id: add note to an issue.
62
     *
63
     * @var int
64
     */
65
    const TYPE_NOTE = 6;
66
67
    /**
68
     * Activity Id: modify issue tags.
69
     *
70
     * @var int
71
     */
72
    const TYPE_ISSUE_TAG = 7;
73
74
    /**
75
     * Timestamp enabled.
76
     *
77
     * @var bool
78
     */
79
    public $timestamps = false;
80
81
    /**
82
     * Name of database table.
83
     *
84
     * @var string
85
     */
86
    protected $table = 'activity';
87
88
    /**
89
     * @param User|null $user
90
     *
91
     * @return \Tinyissue\Repository\Activity\Updater
92
     */
93
    public function updater(User $user = null)
94
    {
95
        return parent::updater($user);
96
    }
97
}
98