vendor/croisiland/common-bundle/src/Entity/Company/CompanyTermsOfSelling.php line 18

Open in your IDE?
  1. <?php
  2. declare(strict_types=1);
  3. namespace Croisiland\CommonBundle\Entity\Company;
  4. use Crea\ToolsBundle\Entity\LifecycleUserIdentifierTrait;
  5. use Croisiland\CommonBundle\Annotation\Company\CompanyTermsOfSellingFormValidator;
  6. use Croisiland\CommonBundle\Entity\Traits\IsActiveTrait;
  7. use Croisiland\CommonBundle\Repository\Company\CompanyTermsOfSellingRepository;
  8. use Doctrine\ORM\Mapping as ORM;
  9. /**
  10. * @ORM\Entity(repositoryClass=CompanyTermsOfSellingRepository::class)
  11. *
  12. * @CompanyTermsOfSellingFormValidator(groups={"company_terms_of_selling_form_validator"})
  13. */
  14. class CompanyTermsOfSelling
  15. {
  16. use IsActiveTrait;
  17. use LifecycleUserIdentifierTrait;
  18. /**
  19. * @ORM\Id
  20. *
  21. * @ORM\GeneratedValue
  22. *
  23. * @ORM\Column(type="integer")
  24. */
  25. private ?int $id;
  26. /**
  27. * @ORM\Column(type="string", length=255)
  28. */
  29. private ?string $version = null;
  30. /**
  31. * @ORM\Column(type="text", nullable=true)
  32. */
  33. private ?string $description = null;
  34. /**
  35. * @ORM\ManyToOne(targetEntity=Company::class, inversedBy="companyTermsOfSellings")
  36. *
  37. * @ORM\JoinColumn(nullable=false)
  38. */
  39. private ?Company $company = null;
  40. public function getId(): ?int
  41. {
  42. return $this->id;
  43. }
  44. public function getVersion(): ?string
  45. {
  46. return $this->version;
  47. }
  48. public function setVersion(?string $version): self
  49. {
  50. $this->version = $version;
  51. return $this;
  52. }
  53. public function getDescription(): ?string
  54. {
  55. return $this->description;
  56. }
  57. public function setDescription(?string $description): self
  58. {
  59. $this->description = $description;
  60. return $this;
  61. }
  62. public function getCompany(): ?Company
  63. {
  64. return $this->company;
  65. }
  66. public function setCompany(?Company $company): self
  67. {
  68. $this->company = $company;
  69. return $this;
  70. }
  71. }