1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
namespace Developtech\AgilityBundle\Entity; |
4
|
|
|
|
5
|
|
|
use Doctrine\ORM\Mapping as ORM; |
6
|
|
|
|
7
|
|
|
/** |
8
|
|
|
* Feedback |
9
|
|
|
* |
10
|
|
|
* @ORM\Entity(repositoryClass="Developtech\AgilityBundle\Repository\FeatureRepository") |
11
|
|
|
* @ORM\Table(name="developtech_agility__features") |
12
|
|
|
* @ORM\HasLifecycleCallbacks() |
13
|
|
|
*/ |
14
|
|
|
class Feature extends Job { |
15
|
|
|
/** |
16
|
|
|
* @ORM\Column(type="string", length=15) |
17
|
|
|
*/ |
18
|
|
|
protected $featureType; |
19
|
|
|
/** |
20
|
|
|
* @ORM\Column(type="integer", nullable=true) |
21
|
|
|
*/ |
22
|
|
|
protected $productOwnerValue; |
23
|
|
|
/** |
24
|
|
|
* @ORM\Column(type="integer", nullable=true) |
25
|
|
|
*/ |
26
|
|
|
protected $userValue; |
27
|
|
|
|
28
|
|
|
const FEATURE_TYPE_PRODUCT_OWNER = 'product-owner'; |
29
|
|
|
const FEATURE_TYPE_USER = 'user'; |
30
|
|
|
|
31
|
|
|
const STATUS_TO_SPECIFY = 0; |
32
|
|
|
const STATUS_TO_VALORIZE = 1; |
33
|
|
|
const STATUS_READY = 2; |
34
|
|
|
const STATUS_TO_DO = 3; |
35
|
|
|
const STATUS_IN_PROGRESS = 4; |
36
|
|
|
const STATUS_TO_VALIDATE = 5; |
37
|
|
|
const STATUS_TO_DEPLOY = 6; |
38
|
|
|
|
39
|
|
|
/** |
40
|
|
|
* @return string |
41
|
|
|
*/ |
42
|
1 |
|
public function getType() { |
43
|
1 |
|
return self::TYPE_FEATURE; |
44
|
|
|
} |
45
|
|
|
|
46
|
|
|
/** |
47
|
|
|
* @param string $featureType |
48
|
|
|
* @return FeatureModel |
49
|
|
|
*/ |
50
|
2 |
|
public function setFeatureType($featureType) { |
51
|
2 |
|
$this->featureType = $featureType; |
52
|
|
|
|
53
|
2 |
|
return $this; |
54
|
|
|
} |
55
|
|
|
|
56
|
|
|
/** |
57
|
|
|
* @return string |
58
|
|
|
*/ |
59
|
1 |
|
public function getFeatureType() { |
60
|
1 |
|
return $this->featureType; |
61
|
|
|
} |
62
|
|
|
|
63
|
|
|
/** |
64
|
|
|
* @param integer $productOwnerValue |
65
|
|
|
* @return FeatureModel |
66
|
|
|
*/ |
67
|
2 |
|
public function setProductOwnerValue($productOwnerValue) { |
68
|
2 |
|
$this->productOwnerValue = $productOwnerValue; |
69
|
|
|
|
70
|
2 |
|
return $this; |
71
|
|
|
} |
72
|
|
|
|
73
|
|
|
/** |
74
|
|
|
* @return integer |
75
|
|
|
*/ |
76
|
2 |
|
public function getProductOwnerValue() { |
77
|
2 |
|
return $this->productOwnerValue; |
78
|
|
|
} |
79
|
|
|
|
80
|
|
|
/** |
81
|
|
|
* @var integer $userValue |
82
|
|
|
* @return FeatureModel |
83
|
|
|
*/ |
84
|
1 |
|
public function setUserValue($userValue) { |
85
|
1 |
|
$this->userValue = $userValue; |
86
|
|
|
|
87
|
1 |
|
return $this; |
88
|
|
|
} |
89
|
|
|
|
90
|
|
|
/** |
91
|
|
|
* @return integer |
92
|
|
|
*/ |
93
|
1 |
|
public function getUserValue() { |
94
|
1 |
|
return $this->userValue; |
95
|
|
|
} |
96
|
|
|
} |
97
|
|
|
|