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