<?php
namespace App\Entity;
use ApiPlatform\Core\Annotation\ApiResource;
use App\Repository\TeamRepository;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: TeamRepository::class)]
#[ApiResource]
class Team
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column]
private ?int $id = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $nomprenom = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $proffesion = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $image = null;
public function getId(): ?int
{
return $this->id;
}
public function getNomprenom(): ?string
{
return $this->nomprenom;
}
public function setNomprenom(?string $nomprenom): self
{
$this->nomprenom = $nomprenom;
return $this;
}
public function getProffesion(): ?string
{
return $this->proffesion;
}
public function setProffesion(?string $proffesion): self
{
$this->proffesion = $proffesion;
return $this;
}
public function getImage(): ?string
{
return $this->image;
}
public function setImage(?string $image): self
{
$this->image = $image;
return $this;
}
}