| Total Complexity | 4 |
| Total Lines | 60 |
| Duplicated Lines | 0 % |
| Coverage | 27.27% |
| Changes | 0 | ||
| 1 | <?php |
||
| 14 | class Details extends DetailsModel |
||
| 15 | { |
||
| 16 | /** |
||
| 17 | * @ORM\Id |
||
| 18 | * @ORM\GeneratedValue(strategy="AUTO") |
||
| 19 | * @ORM\Column(type="integer") |
||
| 20 | */ |
||
| 21 | protected $id; |
||
| 22 | /** |
||
| 23 | * @ORM\ManyToOne(targetEntity="Project", inversedBy="details") |
||
| 24 | * @ORM\JoinColumn(onDelete="CASCADE") |
||
| 25 | */ |
||
| 26 | protected $project; |
||
| 27 | /** |
||
| 28 | * @ORM\Column(type="text") |
||
| 29 | */ |
||
| 30 | protected $needDescription; |
||
| 31 | /** |
||
| 32 | * @ORM\Column(type="text") |
||
| 33 | */ |
||
| 34 | protected $targetDescription; |
||
| 35 | /** |
||
| 36 | * @ORM\Column(type="text") |
||
| 37 | */ |
||
| 38 | protected $goalDescription; |
||
| 39 | /** |
||
| 40 | * @ORM\Column(type="datetime") |
||
| 41 | */ |
||
| 42 | protected $createdAt; |
||
| 43 | /** |
||
| 44 | * @ORM\Column(type="datetime") |
||
| 45 | */ |
||
| 46 | protected $updatedAt; |
||
| 47 | |||
| 48 | /** |
||
| 49 | * @ORM\PrePersist() |
||
| 50 | */ |
||
| 51 | 1 | public function prePersist() |
|
| 52 | { |
||
| 53 | 1 | $this->createdAt = $this->updatedAt = new \DateTime(); |
|
| 54 | 1 | } |
|
| 55 | |||
| 56 | /** |
||
| 57 | * @ORM\PreUpdate() |
||
| 58 | */ |
||
| 59 | public function preUpdate() |
||
| 62 | } |
||
| 63 | |||
| 64 | public function setId(int $id): Details |
||
| 69 | } |
||
| 70 | |||
| 71 | public function getId(): int |
||
| 74 | } |
||
| 75 | } |