| Total Complexity | 8 |
| Total Lines | 68 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 12 | class Problem |
||
| 13 | { |
||
| 14 | public function __construct() |
||
| 15 | { |
||
| 16 | $this->createdAt = new DateTime(); |
||
| 17 | } |
||
| 18 | |||
| 19 | /** |
||
| 20 | * @ORM\Id |
||
| 21 | * @ORM\GeneratedValue |
||
| 22 | * @ORM\Column(type="integer") |
||
| 23 | */ |
||
| 24 | private $id; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * @ORM\Column(type="datetime") |
||
| 28 | */ |
||
| 29 | private $createdAt; |
||
| 30 | |||
| 31 | /** |
||
| 32 | * @ORM\Column(type="text") |
||
| 33 | */ |
||
| 34 | private $description; |
||
| 35 | |||
| 36 | /** |
||
| 37 | * @ORM\Column(type="string", length=255, nullable=true) |
||
| 38 | */ |
||
| 39 | private $uri; |
||
| 40 | |||
| 41 | public function getId(): ?int |
||
| 42 | { |
||
| 43 | return $this->id; |
||
| 44 | } |
||
| 45 | |||
| 46 | public function getCreatedAt(): ?\DateTimeInterface |
||
| 47 | { |
||
| 48 | return $this->createdAt; |
||
| 49 | } |
||
| 50 | |||
| 51 | public function setCreatedAt(\DateTimeInterface $createdAt): self |
||
| 52 | { |
||
| 53 | $this->createdAt = $createdAt; |
||
| 54 | |||
| 55 | return $this; |
||
| 56 | } |
||
| 57 | |||
| 58 | public function getDescription(): ?string |
||
| 61 | } |
||
| 62 | |||
| 63 | public function setDescription(string $description): self |
||
| 64 | { |
||
| 65 | $this->description = $description; |
||
| 66 | |||
| 67 | return $this; |
||
| 68 | } |
||
| 69 | |||
| 70 | public function getUri(): ?string |
||
| 71 | { |
||
| 72 | return $this->uri; |
||
| 73 | } |
||
| 74 | |||
| 75 | public function setUri(?string $uri): self |
||
| 80 | } |
||
| 81 | } |
||
| 82 |