<?phpnamespace App\Entity;use App\Repository\SupplierAdjudicationRepository;use Doctrine\ORM\Mapping as ORM;use Gedmo\Timestampable\Traits\TimestampableEntity;use Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity;use Tionvel\WorkflowBundle\Entity\WorkflowProcess;/** * @UniqueEntity(fields={"supplier","process"}) */#[ORM\Entity(repositoryClass: SupplierAdjudicationRepository::class)]#[ORM\Table(name: '`supplier_adjudication`')]#[ORM\UniqueConstraint(name: "idx_supplier_process", columns: ["supplier_id","process_id"])]class SupplierAdjudication{ use TimestampableEntity; #[ORM\Id] #[ORM\GeneratedValue(strategy:"AUTO")] #[ORM\Column(type: "integer")] protected ?int $id = null; #[ORM\ManyToOne(targetEntity:"App\Entity\Supplier", inversedBy: "supplierAdjudication")] protected $supplier; #[ORM\ManyToOne(targetEntity:"Tionvel\WorkflowBundle\Entity\WorkflowProcess")] protected $process; #[ORM\Column(type: "string")] protected $uuid; #[ORM\Column(type: "boolean")] protected $isWinner; #[ORM\Column(type: "integer")] protected $winnerAmount; /** * @return int */ public function getId(): int { return $this->id; } /** * @param int $id */ public function setId(int $id): void { $this->id = $id; } /** * @return Supplier */ public function getSupplier(): Supplier { return $this->supplier; } /** * @param Supplier $supplier */ public function setSupplier(Supplier $supplier): void { $this->supplier = $supplier; } /** * @return WorkflowProcess */ public function getProcess(): WorkflowProcess { return $this->process; } /** * @param WorkflowProcess $process */ public function setProcess(WorkflowProcess $process): void { $this->process = $process; } /** * @return string */ public function getUuid(): string { return $this->uuid; } /** * @param string $uuid */ public function setUuid(string $uuid): void { $this->uuid = $uuid; } /** * @return bool */ public function isWinner(): bool { return $this->isWinner; } /** * @param bool $isWinner */ public function setIsWinner(bool $isWinner): void { $this->isWinner = $isWinner; } /** * @return int */ public function getWinnerAmount(): int { return $this->winnerAmount; } /** * @param int $winnerAmount */ public function setWinnerAmount(int $winnerAmount): void { $this->winnerAmount = $winnerAmount; }}