Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
100.00% |
3 / 3 |
|
100.00% |
3 / 3 |
CRAP | |
100.00% |
1 / 1 |
| Album | |
100.00% |
3 / 3 |
|
100.00% |
3 / 3 |
3 | |
100.00% |
1 / 1 |
| getId | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| getName | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| setName | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| 1 | <?php |
| 2 | |
| 3 | namespace App\Entity; |
| 4 | |
| 5 | use App\Repository\AlbumRepository; |
| 6 | use Doctrine\ORM\Mapping as ORM; |
| 7 | |
| 8 | #[ORM\Entity(repositoryClass: AlbumRepository::class)] |
| 9 | class Album |
| 10 | { |
| 11 | #[ORM\Id] |
| 12 | #[ORM\GeneratedValue] |
| 13 | #[ORM\Column] |
| 14 | private ?int $id = null; |
| 15 | |
| 16 | #[ORM\Column] |
| 17 | private string $name; |
| 18 | |
| 19 | public function getId(): ?int |
| 20 | { |
| 21 | return $this->id; |
| 22 | } |
| 23 | |
| 24 | public function getName(): string |
| 25 | { |
| 26 | return $this->name; |
| 27 | } |
| 28 | |
| 29 | public function setName(string $name): void |
| 30 | { |
| 31 | $this->name = $name; |
| 32 | } |
| 33 | } |