<?php
namespace App\Entity;
use App\Repository\FreresoeurRepository;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: FreresoeurRepository::class)]
class Freresoeur
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column]
private ?int $id = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $nom = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $prenom = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $sexe = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $age = null;
#[ORM\ManyToOne(inversedBy: 'FreresSoeurs')]
private ?Membre $membre = null;
public function getId(): ?int
{
return $this->id;
}
public function getNom(): ?string
{
return $this->nom;
}
public function setNom(?string $nom): self
{
$this->nom = $nom;
return $this;
}
public function getPrenom(): ?string
{
return $this->prenom;
}
public function setPrenom(?string $prenom): self
{
$this->prenom = $prenom;
return $this;
}
public function getSexe(): ?string
{
return $this->sexe;
}
public function setSexe(?string $sexe): self
{
$this->sexe = $sexe;
return $this;
}
public function getAge(): ?string
{
return $this->age;
}
public function setAge(?string $age): self
{
$this->age = $age;
return $this;
}
public function getMembre(): ?Membre
{
return $this->membre;
}
public function setMembre(?Membre $membre): self
{
$this->membre = $membre;
return $this;
}
}