<?php
namespace App\Entity;
use App\Repository\VisiteRepository;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: VisiteRepository::class)]
class Visite
{
#[ORM\Id]
#[ORM\GeneratedValue(strategy: 'AUTO')]
#[ORM\Column(type: 'integer', unique: true)]
private $id;
#[ORM\Column(type: 'date')]
private $date;
#[ORM\ManyToOne(targetEntity: 'Company', inversedBy: "visites")]
#[ORM\JoinColumn(nullable: false, onDelete: 'CASCADE')]
private $company;
#[ORM\Column(type: 'integer')]
private $number;
/**
* @return mixed
*/
public function getCompany()
{
return $this->company;
}
/**
* @param mixed $company
*/
public function setCompany($company): void
{
$this->company = $company;
}
public function getId(): ?int
{
return $this->id;
}
public function getDate(): ?\DateTimeInterface
{
return $this->date;
}
public function setDate(\DateTimeInterface $date): self
{
$this->date = $date;
return $this;
}
public function getNumber(): ?int
{
return $this->number;
}
public function setNumber(int $number): self
{
$this->number = $number;
return $this;
}
}