| Total Complexity | 4 |
| Total Lines | 34 |
| Duplicated Lines | 0 % |
| Coverage | 77.78% |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 13 | #[ORM\Entity(repositoryClass: GenreRepository::class)] |
||
| 14 | #[ORM\Table(name: 'genre')] |
||
| 15 | class Genre implements GenreInterface |
||
| 16 | { |
||
| 17 | #[ORM\Column(type: Types::INTEGER)] |
||
| 18 | #[ORM\Id, ORM\GeneratedValue(strategy: 'AUTO')] |
||
| 19 | private int $id; |
||
| 20 | |||
| 21 | #[ORM\Column(type: Types::STRING)] |
||
| 22 | private string $title = ''; |
||
| 23 | |||
| 24 | /** @var Collection<int, GenreMapInterface> */ |
||
| 25 | #[ORM\OneToMany(mappedBy: 'genre_map', targetEntity: GenreMapInterface::class, cascade: ['ALL'])] |
||
| 26 | private Collection $mappedGenres; |
||
| 27 | |||
| 28 | 2 | public function __construct() |
|
| 29 | { |
||
| 30 | 2 | $this->mappedGenres = new ArrayCollection(); |
|
| 31 | } |
||
| 32 | |||
| 33 | public function getId(): int |
||
| 34 | { |
||
| 35 | return $this->id; |
||
| 36 | } |
||
| 37 | |||
| 38 | 1 | public function getTitle(): string |
|
| 41 | } |
||
| 42 | |||
| 43 | 1 | public function setTitle(string $title): GenreInterface |
|
| 47 | } |
||
| 48 | } |
||
| 49 |