| Total Complexity | 4 |
| Total Lines | 35 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 20 | class Category |
||
| 21 | { |
||
| 22 | /** |
||
| 23 | * @ORM\Id() |
||
| 24 | * @ORM\GeneratedValue() |
||
| 25 | * @ORM\Column(type="integer") |
||
| 26 | */ |
||
| 27 | private $id; |
||
| 28 | |||
| 29 | /** |
||
| 30 | * @ORM\Column(type="string", length=255) |
||
| 31 | * @Assert\NotBlank |
||
| 32 | */ |
||
| 33 | private $name; |
||
| 34 | |||
| 35 | public function __construct() |
||
| 36 | { |
||
| 37 | $this->adverts = new ArrayCollection(); |
||
|
|
|||
| 38 | } |
||
| 39 | |||
| 40 | public function getId(): ?int |
||
| 41 | { |
||
| 42 | return $this->id; |
||
| 43 | } |
||
| 44 | |||
| 45 | public function getName(): ?string |
||
| 48 | } |
||
| 49 | |||
| 50 | public function setName(string $name): self |
||
| 57 |