DependencyResourceModel::setPredecessorId()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 6
ccs 3
cts 3
cp 1
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 1
crap 1
1
<?php
2
3
/*
4
 * This file is part of the zibios/wrike-php-jmsserializer package.
5
 *
6
 * (c) Zbigniew Ślązak
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 Zibios\WrikePhpJmsserializer\Model\Dependency;
13
14
use JMS\Serializer\Annotation as SA;
15
use Zibios\WrikePhpJmsserializer\Model\AbstractModel;
16
use Zibios\WrikePhpJmsserializer\Model\ResourceModelInterface;
17
18
/**
19
 * Dependency Resource Model.
20
 */
21
class DependencyResourceModel extends AbstractModel implements ResourceModelInterface
22
{
23
    /**
24
     * Dependency ID.
25
     *
26
     * Dependency: Dependency ID
27
     *
28
     * @SA\Type("string")
29
     * @SA\SerializedName("id")
30
     *
31
     * @var string|null
32
     */
33
    protected $id;
34
35
    /**
36
     * Predecessor task ID.
37
     *
38
     * Dependency: Task ID
39
     *
40
     * @SA\Type("string")
41
     * @SA\SerializedName("predecessorId")
42
     *
43
     * @var string|null
44
     */
45
    protected $predecessorId;
46
47
    /**
48
     * Successor task ID.
49
     *
50
     * Dependency: Task ID
51
     *
52
     * @SA\Type("string")
53
     * @SA\SerializedName("successorId")
54
     *
55
     * @var string|null
56
     */
57
    protected $successorId;
58
59
    /**
60
     * Relation between Predecessor and Successor.
61
     *
62
     * Dependency relation type, Enum: StartToStart, StartToFinish, FinishToStart, FinishToFinish
63
     *
64
     * @see \Zibios\WrikePhpLibrary\Enum\DependencyRelationTypeEnum
65
     *
66
     * @SA\Type("string")
67
     * @SA\SerializedName("relationType")
68
     *
69
     * @var string|null
70
     */
71
    protected $relationType;
72
73
    /**
74
     * @return null|string
75
     */
76 1
    public function getId()
77
    {
78 1
        return $this->id;
79
    }
80
81
    /**
82
     * @param null|string $id
83
     *
84
     * @return $this
85
     */
86 1
    public function setId($id)
87
    {
88 1
        $this->id = $id;
89
90 1
        return $this;
91
    }
92
93
    /**
94
     * @return null|string
95
     */
96 1
    public function getPredecessorId()
97
    {
98 1
        return $this->predecessorId;
99
    }
100
101
    /**
102
     * @param null|string $predecessorId
103
     *
104
     * @return $this
105
     */
106 1
    public function setPredecessorId($predecessorId)
107
    {
108 1
        $this->predecessorId = $predecessorId;
109
110 1
        return $this;
111
    }
112
113
    /**
114
     * @return null|string
115
     */
116 1
    public function getSuccessorId()
117
    {
118 1
        return $this->successorId;
119
    }
120
121
    /**
122
     * @param null|string $successorId
123
     *
124
     * @return $this
125
     */
126 1
    public function setSuccessorId($successorId)
127
    {
128 1
        $this->successorId = $successorId;
129
130 1
        return $this;
131
    }
132
133
    /**
134
     * @return null|string
135
     */
136 1
    public function getRelationType()
137
    {
138 1
        return $this->relationType;
139
    }
140
141
    /**
142
     * @param null|string $relationType
143
     *
144
     * @return $this
145
     */
146 1
    public function setRelationType($relationType)
147
    {
148 1
        $this->relationType = $relationType;
149
150 1
        return $this;
151
    }
152
}
153