CraftCamp /
official-website
| 1 | <?php |
||
| 2 | |||
| 3 | namespace App\Entity\Project; |
||
| 4 | |||
| 5 | use Doctrine\ORM\Mapping as ORM; |
||
| 6 | |||
| 7 | /** |
||
| 8 | * @ORM\Entity(repositoryClass="App\Repository\Project\FeatureRepository") |
||
| 9 | * @ORM\Table(name="project__features") |
||
| 10 | * @ORM\HasLifecycleCallbacks() |
||
| 11 | */ |
||
| 12 | class Feature extends Job |
||
| 13 | { |
||
| 14 | /** |
||
| 15 | * @ORM\Column(type="string", length=15) |
||
| 16 | */ |
||
| 17 | protected $featureType; |
||
| 18 | /** |
||
| 19 | * @ORM\Column(type="integer", nullable=true) |
||
| 20 | */ |
||
| 21 | protected $productOwnerValue; |
||
| 22 | /** |
||
| 23 | * @ORM\Column(type="integer", nullable=true) |
||
| 24 | */ |
||
| 25 | protected $userValue; |
||
| 26 | |||
| 27 | const FEATURE_TYPE_PRODUCT_OWNER = 'product-owner'; |
||
| 28 | const FEATURE_TYPE_USER = 'user'; |
||
| 29 | |||
| 30 | const STATUS_TO_SPECIFY = 0; |
||
| 31 | const STATUS_TO_VALORIZE = 1; |
||
| 32 | const STATUS_READY = 2; |
||
| 33 | const STATUS_TO_DO = 3; |
||
| 34 | const STATUS_IN_PROGRESS = 4; |
||
| 35 | const STATUS_TO_VALIDATE = 5; |
||
| 36 | const STATUS_TO_DEPLOY = 6; |
||
| 37 | |||
| 38 | public function getType(): string |
||
| 39 | { |
||
| 40 | return self::TYPE_FEATURE; |
||
| 41 | } |
||
| 42 | |||
| 43 | public function setFeatureType(string $featureType): Feature |
||
| 44 | { |
||
| 45 | $this->featureType = $featureType; |
||
| 46 | |||
| 47 | return $this; |
||
| 48 | } |
||
| 49 | |||
| 50 | public function getFeatureType(): string |
||
| 51 | { |
||
| 52 | return $this->featureType; |
||
| 53 | } |
||
| 54 | |||
| 55 | public function setProductOwnerValue(int $productOwnerValue): Feature |
||
| 56 | { |
||
| 57 | $this->productOwnerValue = $productOwnerValue; |
||
| 58 | |||
| 59 | return $this; |
||
| 60 | } |
||
| 61 | |||
| 62 | public function getProductOwnerValue(): int |
||
| 63 | { |
||
| 64 | return $this->productOwnerValue; |
||
|
0 ignored issues
–
show
Bug
Best Practice
introduced
by
Loading history...
|
|||
| 65 | } |
||
| 66 | |||
| 67 | public function setUserValue(int $userValue): Feature |
||
| 68 | { |
||
| 69 | $this->userValue = $userValue; |
||
| 70 | |||
| 71 | return $this; |
||
| 72 | } |
||
| 73 | |||
| 74 | public function getUserValue(): int |
||
| 75 | { |
||
| 76 | return $this->userValue; |
||
|
0 ignored issues
–
show
|
|||
| 77 | } |
||
| 78 | } |
||
| 79 |