src/Entity/Certificate.php line 13
<?phpnamespace App\Entity;use ApiPlatform\Metadata\ApiResource;use App\Repository\CertificateRepository;use Doctrine\ORM\Mapping as ORM;use Symfony\UX\Turbo\Attribute\Broadcast;#[ORM\Entity(repositoryClass: CertificateRepository::class)]#[ApiResource]#[Broadcast]class Certificate{#[ORM\Id]#[ORM\GeneratedValue]#[ORM\Column]private ?int $id = null;#[ORM\Column(length: 255)]private ?string $name = null;#[ORM\Column(length: 255, nullable: true)]private ?string $path = null;#[ORM\ManyToOne(inversedBy: 'certificates')]private ?Attendee $attendee = null;#[ORM\ManyToOne(inversedBy: 'certificates')]private ?Course $course = null;public function getId(): ?int{return $this->id;}public function getName(): ?string{return $this->name;}public function setName(string $name): self{$this->name = $name;return $this;}public function getPath(): ?string{return $this->path;}public function setPath(?string $path): self{$this->path = $path;return $this;}public function getAttendee(): ?Attendee{return $this->attendee;}public function setAttendee(?Attendee $attendee): self{$this->attendee = $attendee;return $this;}public function getCourse(): ?Course{return $this->course;}public function setCourse(?Course $course): self{$this->course = $course;return $this;}}