<?php
namespace App\Entity\Commercial;
use App\Entity\Common\LicenseEmbeddable;
use App\Repository\Commercial\LicensesOfferRepository;
use Doctrine\ORM\Mapping\Entity;
use Doctrine\ORM\Mapping as ORM;
use Symfony\Component\Validator\Constraints as Assert;
#[Entity(repositoryClass: LicensesOfferRepository::class)]
#[ORM\Table(name: 'commercial_licenses_offers')]
class LicensesOffer
{
#[ORM\Id, ORM\GeneratedValue, ORM\Column(type: 'integer')]
private ?int $id = null;
#[ORM\Embedded(class: LicenseEmbeddable::class)]
#[Assert\Valid]
private ?LicenseEmbeddable $license = null;
public function getId(): ?int
{
return $this->id;
}
public function getLicense(): ?LicenseEmbeddable
{
return $this->license;
}
public function setLicense(?LicenseEmbeddable $license): static
{
$this->license = $license;
return $this;
}
}