src/Entity/Template.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Entity\Clinic\Clinic;
  4. use App\Repository\TemplateRepository;
  5. use Doctrine\ORM\Mapping as ORM;
  6. /**
  7.  * @ORM\Entity(repositoryClass=TemplateRepository::class)
  8.  */
  9. class Template
  10. {
  11.     /**
  12.      * @ORM\Id
  13.      * @ORM\GeneratedValue
  14.      * @ORM\Column(type="integer")
  15.      */
  16.     private $id;
  17.     
  18.     /**
  19.      * @ORM\Column(type="integer")
  20.      */
  21.      private $categoryId;
  22.      /**
  23.      * @ORM\Column(type="integer", nullable=true)
  24.      */
  25.      private $parentId 0;
  26.     /**
  27.      * @ORM\Column(type="string", length=512, nullable=true)
  28.      */
  29.      private $image;
  30.     /**
  31.      * @ORM\Column(type="string", length=255, nullable=true)
  32.      */
  33.      private $title;
  34.     /**
  35.      * @ORM\Column(type="integer", nullable=true)
  36.      */
  37.     private $status;
  38.     /**
  39.      * @var Clinic
  40.      *
  41.      * @ORM\ManyToOne(targetEntity="App\Entity\Clinic\Clinic", inversedBy="templates")
  42.      */
  43.     private $clinic;
  44.     /**
  45.      * @ORM\Column(type="text", nullable=true)
  46.      */
  47.     private $body;
  48.     /**
  49.      * @ORM\Column(type="text", nullable=true)
  50.      */
  51.     private $css;
  52.     /**
  53.      * @ORM\Column(type="text", nullable=true)
  54.      */
  55.     private $data=null;
  56.        /**
  57.      * @var \DateTime
  58.      *
  59.      * @ORM\Column(type="datetime")
  60.      */
  61.     private  $updated_at null;
  62.        /**
  63.      * @var \DateTime
  64.      *
  65.      * @ORM\Column(type="datetime")
  66.      */
  67.     private  $created_at null;
  68.     public function __construct()
  69.     { 
  70.         $this->setParentId(0);
  71.         $this->setData(null);
  72.     }
  73.     public function getId(): ?int
  74.     {
  75.         return $this->id;
  76.     }
  77.     public function getParentId(): ?int
  78.     {
  79.         return $this->parentId;
  80.     }
  81.     public function setParentId(?int $parentId): self
  82.     {
  83.         $this->parentId $parentId;
  84.         return $this;
  85.     }
  86.     
  87.     public function getCategoryId(): ?int
  88.     {
  89.         return $this->categoryId;
  90.     }
  91.     public function setCategoryId(?int $categoryId): self
  92.     {
  93.         $this->categoryId $categoryId;
  94.         return $this;
  95.     }
  96.     public function getBody(): ?string
  97.     {
  98.         return $this->body;
  99.     }
  100.     public function setBody(?string $body): self
  101.     {
  102.         $this->body $body;
  103.         return $this;
  104.     }
  105.     public function getCss(): ?string
  106.     {
  107.         return $this->css;
  108.     }
  109.     public function setCss(?string $css): self
  110.     {
  111.         $this->css $css;
  112.         return $this;
  113.     }
  114.  
  115.     public function getStatus(): ?string
  116.     {
  117.         return $this->status;
  118.     }
  119.     public function setStatus(?string $status): self
  120.     {
  121.         $this->status $status;
  122.         return $this;
  123.     }
  124.      /**
  125.      * @return Clinic
  126.      */
  127.     public function getClinic()
  128.     {
  129.         return $this->clinic;
  130.     }
  131.     /**
  132.      * @param Clinic $clinic
  133.      *
  134.      * @return $this
  135.      */
  136.     public function setClinic(Clinic $clinic null)
  137.     {
  138.         $this->clinic $clinic;
  139.         return $this;
  140.     }
  141.     
  142.     public function getTitle(): ?string
  143.     {
  144.         return $this->title;
  145.     }
  146.     public function setTitle(?string $title): self
  147.     {
  148.         $this->title $title;
  149.         return $this;
  150.     }
  151.     public function getImage(): ?string
  152.     {
  153.         return $this->image;
  154.     }
  155.     public function setImage(?string $image): self
  156.     {
  157.         $this->image $image;
  158.         return $this;
  159.     }
  160.     public function getData(): ?string
  161.     {
  162.         return $this->data;
  163.     }
  164.     public function setData(?string $data): self
  165.     {
  166.         $this->data $data;
  167.         return $this;
  168.     }
  169. /**
  170.      * @return \DateTime
  171.      */
  172.     public function getCreatedAt()
  173.     {
  174.         return $this->created_at;
  175.     }
  176.     /**
  177.          * @param \DateTime $created_at
  178.          *
  179.          * @return $this
  180.          */
  181.     public function setCreatedAt($created_at): self
  182.     {
  183.         $this->created_at $created_at;
  184.         return $this;
  185.     }
  186.     /**
  187.      * @return \DateTime
  188.      */
  189.     public function getUpdatedAt()
  190.     {
  191.         return $this->updated_at;
  192.     }
  193.       /**
  194.          * @param \DateTime $updated_at
  195.          *
  196.          * @return $this
  197.          */
  198.     public function setUpdatedAt($updated_at): self
  199.     {
  200.         $this->updated_at $updated_at;
  201.         return $this;
  202.     }
  203.    
  204. }