src/Entity/CustomerControl.php line 9
<?php
namespace App\Entity;
use App\Repository\CustomerControlRepository;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: CustomerControlRepository::class)]
class CustomerControl
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column]
private ?int $id = null;
#[ORM\ManyToOne(targetEntity: User::class, inversedBy: 'customer')]
private $user;
#[ORM\ManyToOne(targetEntity: User::class, inversedBy: 'customerControl')]
private $customer;
#[ORM\Column(name: 'finish', type: 'boolean', nullable: true)]
private ?bool $finish;
public function getId(): ?int
{
return $this->id;
}
/**
* @return mixed
*/
public function getUser()
{
return $this->user;
}
/**
* @param mixed $user
*/
public function setUser($user): void
{
$this->user = $user;
}
/**
* @return mixed
*/
public function getCustomer()
{
return $this->customer;
}
/**
* @param mixed $customer
*/
public function setCustomer($customer): void
{
$this->customer = $customer;
}
/**
* @return bool|null
*/
public function getFinish(): ?bool
{
return $this->finish;
}
/**
* @param bool|null $finish
*/
public function setFinish(?bool $finish): void
{
$this->finish = $finish;
}
}