| Total Complexity | 4 |
| Total Lines | 61 |
| Duplicated Lines | 0 % |
| Coverage | 72.72% |
| Changes | 0 | ||
| 1 | <?php |
||
| 14 | class Organization extends OrganizationModel |
||
| 15 | { |
||
| 16 | /** |
||
| 17 | * @var integer |
||
| 18 | * |
||
| 19 | * @ORM\Id |
||
| 20 | * @ORM\GeneratedValue(strategy="AUTO") |
||
| 21 | * @ORM\Column(type="integer") |
||
| 22 | */ |
||
| 23 | protected $id; |
||
| 24 | /** |
||
| 25 | * @ORM\Column(type="string", length=125) |
||
| 26 | */ |
||
| 27 | protected $name; |
||
| 28 | /** |
||
| 29 | * @ORM\Column(type="string", length=125) |
||
| 30 | */ |
||
| 31 | protected $slug; |
||
| 32 | /** |
||
| 33 | * @ORM\Column(type="string", length=25) |
||
| 34 | */ |
||
| 35 | protected $type; |
||
| 36 | /** |
||
| 37 | * @ORM\Column(type="text") |
||
| 38 | */ |
||
| 39 | protected $description; |
||
| 40 | /** |
||
| 41 | * @ORM\Column(type="datetime") |
||
| 42 | */ |
||
| 43 | protected $createdAt; |
||
| 44 | /** |
||
| 45 | * @ORM\Column(type="datetime") |
||
| 46 | */ |
||
| 47 | protected $updatedAt; |
||
| 48 | |||
| 49 | /** |
||
| 50 | * @ORM\PrePersist() |
||
| 51 | */ |
||
| 52 | 4 | public function prePersist() |
|
| 53 | { |
||
| 54 | 4 | $this->createdAt = $this->updatedAt = new \DateTime(); |
|
| 55 | 4 | } |
|
| 56 | |||
| 57 | /** |
||
| 58 | * @ORM\PreUpdate() |
||
| 59 | */ |
||
| 60 | public function preUpdate() |
||
| 61 | { |
||
| 62 | $this->updatedAt = new \DateTime(); |
||
| 63 | } |
||
| 64 | |||
| 65 | 3 | public function setId($id): Organization |
|
| 70 | } |
||
| 71 | |||
| 72 | 3 | public function getId(): int |
|
| 77 |