<?php
declare(strict_types=1);
namespace Croisiland\CommonBundle\Entity\Company;
use Crea\ToolsBundle\Entity\LifecycleUserIdentifierTrait;
use Croisiland\CommonBundle\Annotation\Company\CompanyTermsOfSellingFormValidator;
use Croisiland\CommonBundle\Entity\Traits\IsActiveTrait;
use Croisiland\CommonBundle\Repository\Company\CompanyTermsOfSellingRepository;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass=CompanyTermsOfSellingRepository::class)
*
* @CompanyTermsOfSellingFormValidator(groups={"company_terms_of_selling_form_validator"})
*/
class CompanyTermsOfSelling
{
use IsActiveTrait;
use LifecycleUserIdentifierTrait;
/**
* @ORM\Id
*
* @ORM\GeneratedValue
*
* @ORM\Column(type="integer")
*/
private ?int $id;
/**
* @ORM\Column(type="string", length=255)
*/
private ?string $version = null;
/**
* @ORM\Column(type="text", nullable=true)
*/
private ?string $description = null;
/**
* @ORM\ManyToOne(targetEntity=Company::class, inversedBy="companyTermsOfSellings")
*
* @ORM\JoinColumn(nullable=false)
*/
private ?Company $company = null;
public function getId(): ?int
{
return $this->id;
}
public function getVersion(): ?string
{
return $this->version;
}
public function setVersion(?string $version): self
{
$this->version = $version;
return $this;
}
public function getDescription(): ?string
{
return $this->description;
}
public function setDescription(?string $description): self
{
$this->description = $description;
return $this;
}
public function getCompany(): ?Company
{
return $this->company;
}
public function setCompany(?Company $company): self
{
$this->company = $company;
return $this;
}
}