src/Admin/Entity/StdContentTypes.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Admin\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5.  * StdContentTypes
  6.  */
  7. #[ORM\Table(name'std_content_types')]
  8. #[ORM\Entity(repositoryClass'App\Admin\Repository\StdContentTypesRepository')]
  9. class StdContentTypes
  10. {
  11.     /**
  12.      * @var int
  13.      */
  14.     #[ORM\Column(name'id'type'integer'nullablefalseoptions: ['unsigned' => true'comment' => 'Unique identifier'])]
  15.     #[ORM\Id]
  16.     #[ORM\GeneratedValue(strategy'IDENTITY')]
  17.     private $id;
  18.     /**
  19.      * @var string
  20.      */
  21.     #[ORM\Column(name'name'type'string'length100nullablefalseoptions: ['comment' => 'Content type name'])]
  22.     private $name;
  23.     /**
  24.      * @var string
  25.      */
  26.     #[ORM\Column(name'machine_name'type'string'length50nullablefalseoptions: ['comment' => 'Unique code used in the programming to identify the content type'])]
  27.     private $machineName;
  28.     /**
  29.      * @var string
  30.      */
  31.     #[ORM\Column(name'machine_name_categories'type'string'length50nullabletrueoptions: ['comment' => 'Unique code used in the programming to identify the content type category'])]
  32.     private $machineNameCategories;
  33.     
  34.     /**
  35.      * @var bool
  36.      */
  37.     #[ORM\Column(name'is_category'type'boolean'nullablefalseoptions: ['default' => 0'comment' => 'Flag that indicates if the content type is category'])]
  38.     private $isCategory '0';
  39.     /**
  40.      * @var bool
  41.      */
  42.     #[ORM\Column(name'is_active'type'boolean'nullablefalseoptions: ['default' => 1'comment' => 'Flag that indicates if the content type is active'])]
  43.     private $isActive '1';
  44.     /**
  45.      * @var int
  46.      */
  47.     #[ORM\Column(name'created_by'type'integer'nullablefalseoptions: ['default' => 1'unsigned' => true'comment' => 'User that created the record'])]
  48.     private $createdBy '1';
  49.     /**
  50.      * @var \DateTime
  51.      */
  52.     #[ORM\Column(name'created_date'type'datetime'nullablefalseoptions: ['default' => 'CURRENT_TIMESTAMP''comment' => 'Date and time of the record creation'])]
  53.     private $createdDate 'CURRENT_TIMESTAMP';
  54.     /**
  55.      * @var int
  56.      */
  57.     #[ORM\Column(name'updated_by'type'integer'nullablefalseoptions: ['default' => 1'unsigned' => true'comment' => 'Last user that updated the record'])]
  58.     private $updatedBy '1';
  59.     /**
  60.      * @var \DateTime
  61.      */
  62.     #[ORM\Column(name'updated_date'type'datetime'nullablefalseoptions: ['default' => 'CURRENT_TIMESTAMP''comment' => 'Date and time the record was last updated'])]
  63.     private $updatedDate 'CURRENT_TIMESTAMP';
  64.     /**
  65.      * @var bool
  66.      */
  67.     #[ORM\Column(name'in_navigation'type'boolean'nullablefalseoptions: ['default' => 0'comment' => 'Flag that indicates if the content type appears in the global backoffice navigation'])]
  68.     private $inNavigation=false;
  69.     
  70.     public function getId(): ?int
  71.     {
  72.         return $this->id;
  73.     }
  74.     public function getName(): ?string
  75.     {
  76.         return $this->name;
  77.     }
  78.     public function setName(string $name): self
  79.     {
  80.         $this->name $name;
  81.         return $this;
  82.     }
  83.     public function getMachineName(): ?string
  84.     {
  85.         return $this->machineName;
  86.     }
  87.     public function setMachineName(string $machineName): self
  88.     {
  89.         $this->machineName $machineName;
  90.         return $this;
  91.     }
  92.     public function getMachineNameCategories(): ?string
  93.     {
  94.         return $this->machineNameCategories;
  95.     }
  96.     public function setMachineNameCategories(?string $machineNameCategories): self
  97.     {
  98.         $this->machineNameCategories $machineNameCategories;
  99.         return $this;
  100.     }
  101.     public function getIsCategory(): ?bool
  102.     {
  103.         return $this->isCategory;
  104.     }
  105.     public function setIsCategory(bool $isCategory): self
  106.     {
  107.         $this->isCategory $isCategory;
  108.         return $this;
  109.     }
  110.     public function getIsActive(): ?bool
  111.     {
  112.         return $this->isActive;
  113.     }
  114.     public function setIsActive(bool $isActive): self
  115.     {
  116.         $this->isActive $isActive;
  117.         return $this;
  118.     }
  119.     public function getCreatedBy(): ?int
  120.     {
  121.         return $this->createdBy;
  122.     }
  123.     public function setCreatedBy(int $createdBy): self
  124.     {
  125.         $this->createdBy $createdBy;
  126.         return $this;
  127.     }
  128.     public function getCreatedDate(): ?\DateTimeInterface
  129.     {
  130.         return $this->createdDate;
  131.     }
  132.     public function setCreatedDate(\DateTimeInterface $createdDate): self
  133.     {
  134.         $this->createdDate $createdDate;
  135.         return $this;
  136.     }
  137.     public function getUpdatedBy(): ?int
  138.     {
  139.         return $this->updatedBy;
  140.     }
  141.     public function setUpdatedBy(int $updatedBy): self
  142.     {
  143.         $this->updatedBy $updatedBy;
  144.         return $this;
  145.     }
  146.     public function getUpdatedDate(): ?\DateTimeInterface
  147.     {
  148.         return $this->updatedDate;
  149.     }
  150.     public function setUpdatedDate(\DateTimeInterface $updatedDate): self
  151.     {
  152.         $this->updatedDate $updatedDate;
  153.         return $this;
  154.     }
  155.     public function getInNavigation(): ?bool
  156.     {
  157.         return $this->inNavigation;
  158.     }
  159.     public function setInNavigation(bool $navigation): self
  160.     {
  161.         $this->inNavigation $navigation;
  162.         return $this;
  163.     }
  164. }