vendor/score/cms/src/Entity/Document/DocumentDescription.php line 15

Open in your IDE?
  1. <?php
  2. namespace Score\CmsBundle\Entity\Document;
  3. use Doctrine\Common\Collections\ArrayCollection;
  4. use Doctrine\Common\Collections\Collection;
  5. use Doctrine\ORM\Mapping as ORM;
  6. use Score\BaseBundle\Entity\BaseEntity;
  7. /**
  8.  * @ORM\Entity()
  9.  * @ORM\Table(name="cms_document_description")
  10.  * @ORM\HasLifecycleCallbacks()
  11.  */
  12. class DocumentDescription extends BaseEntity
  13. {
  14.     /**
  15.      * @ORM\Column(name="d_description", type="text", nullable=true)
  16.      */
  17.     protected $description;
  18.     /**
  19.      * @ORM\Column(name="d_public", type="boolean", nullable=true)
  20.      */
  21.     protected $public;
  22.     /**
  23.      * @ORM\ManyToOne(targetEntity=Document::class, inversedBy="documentDescriptions")
  24.      * @ORM\JoinColumn(name="document_id", referencedColumnName="id")
  25.      */
  26.     protected $document;
  27.     /**
  28.      * @ORM\ManyToOne(targetEntity=DocumentDomain::class, inversedBy="documentDescriptions")
  29.      * @ORM\JoinColumn(name="document_domain_id", referencedColumnName="id")
  30.      */
  31.     protected $documentDomain;
  32.     /**
  33.      * @ORM\Column(name="d_sort_order", type="integer", nullable=true)
  34.      */
  35.     protected $sortOrder;
  36.     
  37.     public function getDescription(): ?string
  38.     {
  39.         return $this->description;
  40.     }
  41.     public function setDescription(?string $description): self
  42.     {
  43.         $this->description = $description;
  44.         return $this;
  45.     }
  46.     public function getPublic(): ?bool
  47.     {
  48.         return $this->public;
  49.     }
  50.     public function setPublic(?bool $public): self
  51.     {
  52.         $this->public = $public;
  53.         return $this;
  54.     }
  55.     public function getDocumentDomain(): ?DocumentDomain
  56.     {
  57.         return $this->documentDomain;
  58.     }
  59.     public function setDocumentDomain(?DocumentDomain $documentDomain): self
  60.     {
  61.         $this->documentDomain = $documentDomain;
  62.         return $this;
  63.     }
  64.     public function getDocument(): ?Document
  65.     {
  66.         return $this->document;
  67.     }
  68.     public function setDocument(?Document $document): self
  69.     {
  70.         $this->document = $document;
  71.         return $this;
  72.     }
  73.     
  74.     public function getSortOrder(): ?int
  75.     {
  76.         return $this->sortOrder;
  77.     }
  78.     public function setSortOrder(?int $sortOrder): self
  79.     {
  80.         $this->sortOrder = $sortOrder;
  81.         return $this;
  82.     }
  83. }