<?php
namespace App\Admin\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* StdContentTypes
*/
#[ORM\Table(name: 'std_content_types')]
#[ORM\Entity(repositoryClass: 'App\Admin\Repository\StdContentTypesRepository')]
class StdContentTypes
{
/**
* @var int
*/
#[ORM\Column(name: 'id', type: 'integer', nullable: false, options: ['unsigned' => true, 'comment' => 'Unique identifier'])]
#[ORM\Id]
#[ORM\GeneratedValue(strategy: 'IDENTITY')]
private $id;
/**
* @var string
*/
#[ORM\Column(name: 'name', type: 'string', length: 100, nullable: false, options: ['comment' => 'Content type name'])]
private $name;
/**
* @var string
*/
#[ORM\Column(name: 'machine_name', type: 'string', length: 50, nullable: false, options: ['comment' => 'Unique code used in the programming to identify the content type'])]
private $machineName;
/**
* @var string
*/
#[ORM\Column(name: 'machine_name_categories', type: 'string', length: 50, nullable: true, options: ['comment' => 'Unique code used in the programming to identify the content type category'])]
private $machineNameCategories;
/**
* @var bool
*/
#[ORM\Column(name: 'is_category', type: 'boolean', nullable: false, options: ['default' => 0, 'comment' => 'Flag that indicates if the content type is category'])]
private $isCategory = '0';
/**
* @var bool
*/
#[ORM\Column(name: 'is_active', type: 'boolean', nullable: false, options: ['default' => 1, 'comment' => 'Flag that indicates if the content type is active'])]
private $isActive = '1';
/**
* @var int
*/
#[ORM\Column(name: 'created_by', type: 'integer', nullable: false, options: ['default' => 1, 'unsigned' => true, 'comment' => 'User that created the record'])]
private $createdBy = '1';
/**
* @var \DateTime
*/
#[ORM\Column(name: 'created_date', type: 'datetime', nullable: false, options: ['default' => 'CURRENT_TIMESTAMP', 'comment' => 'Date and time of the record creation'])]
private $createdDate = 'CURRENT_TIMESTAMP';
/**
* @var int
*/
#[ORM\Column(name: 'updated_by', type: 'integer', nullable: false, options: ['default' => 1, 'unsigned' => true, 'comment' => 'Last user that updated the record'])]
private $updatedBy = '1';
/**
* @var \DateTime
*/
#[ORM\Column(name: 'updated_date', type: 'datetime', nullable: false, options: ['default' => 'CURRENT_TIMESTAMP', 'comment' => 'Date and time the record was last updated'])]
private $updatedDate = 'CURRENT_TIMESTAMP';
/**
* @var bool
*/
#[ORM\Column(name: 'in_navigation', type: 'boolean', nullable: false, options: ['default' => 0, 'comment' => 'Flag that indicates if the content type appears in the global backoffice navigation'])]
private $inNavigation=false;
public function getId(): ?int
{
return $this->id;
}
public function getName(): ?string
{
return $this->name;
}
public function setName(string $name): self
{
$this->name = $name;
return $this;
}
public function getMachineName(): ?string
{
return $this->machineName;
}
public function setMachineName(string $machineName): self
{
$this->machineName = $machineName;
return $this;
}
public function getMachineNameCategories(): ?string
{
return $this->machineNameCategories;
}
public function setMachineNameCategories(?string $machineNameCategories): self
{
$this->machineNameCategories = $machineNameCategories;
return $this;
}
public function getIsCategory(): ?bool
{
return $this->isCategory;
}
public function setIsCategory(bool $isCategory): self
{
$this->isCategory = $isCategory;
return $this;
}
public function getIsActive(): ?bool
{
return $this->isActive;
}
public function setIsActive(bool $isActive): self
{
$this->isActive = $isActive;
return $this;
}
public function getCreatedBy(): ?int
{
return $this->createdBy;
}
public function setCreatedBy(int $createdBy): self
{
$this->createdBy = $createdBy;
return $this;
}
public function getCreatedDate(): ?\DateTimeInterface
{
return $this->createdDate;
}
public function setCreatedDate(\DateTimeInterface $createdDate): self
{
$this->createdDate = $createdDate;
return $this;
}
public function getUpdatedBy(): ?int
{
return $this->updatedBy;
}
public function setUpdatedBy(int $updatedBy): self
{
$this->updatedBy = $updatedBy;
return $this;
}
public function getUpdatedDate(): ?\DateTimeInterface
{
return $this->updatedDate;
}
public function setUpdatedDate(\DateTimeInterface $updatedDate): self
{
$this->updatedDate = $updatedDate;
return $this;
}
public function getInNavigation(): ?bool
{
return $this->inNavigation;
}
public function setInNavigation(bool $navigation): self
{
$this->inNavigation = $navigation;
return $this;
}
}