src/Admin/Entity/StdWebservices.php line 15

Open in your IDE?
  1. <?php
  2. namespace App\Admin\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5.  * StdWebservices
  6.  */
  7. #[ORM\Table(name'std_webservices')]
  8. #[ORM\Index(name'FK_std_webservices_std_users'columns: ['created_by'])]
  9. #[ORM\Index(name'FK_std_webservices_std_users_2'columns: ['updated_by'])]
  10. #[ORM\UniqueConstraint(name'machine_name'columns: ['machine_name'])]
  11. #[ORM\Entity]
  12. class StdWebservices
  13. {
  14.     /**
  15.      * @var int
  16.      */
  17.     #[ORM\Column(name'id'type'integer'nullablefalse)]
  18.     #[ORM\Id]
  19.     #[ORM\GeneratedValue(strategy'IDENTITY')]
  20.     private $id;
  21.     /**
  22.      * @var string|null
  23.      */
  24.     #[ORM\Column(name'machine_name'type'string'length50nullabletrue)]
  25.     private $machineName;
  26.     /**
  27.      * @var string
  28.      */
  29.     #[ORM\Column(name'description'type'string'length50nullablefalse)]
  30.     private $description;
  31.     /**
  32.      * @var string
  33.      */
  34.     #[ORM\Column(name'url'type'string'length500nullablefalse)]
  35.     private $url;
  36.     /**
  37.      * @var string
  38.      */
  39.     #[ORM\Column(name'token'type'string'length5000nullablefalse)]
  40.     private $token;
  41.     /**
  42.      * @var bool|null
  43.      */
  44.     #[ORM\Column(name'is_active'type'boolean'nullabletrueoptions: ['default' => 1])]
  45.     private $isActive '1';
  46.     /**
  47.      * @var \DateTime|null
  48.      */
  49.     #[ORM\Column(name'created_date'type'datetime'nullabletrue)]
  50.     private $createdDate;
  51.     /**
  52.      * @var \DateTime|null
  53.      */
  54.     #[ORM\Column(name'updated_date'type'datetime'nullabletrue)]
  55.     private $updatedDate;
  56.     /**
  57.      * @var \StdUsers
  58.      */
  59.     #[ORM\JoinColumn(name'updated_by'referencedColumnName'id')]
  60.     #[ORM\ManyToOne(targetEntity'StdUsers')]
  61.     private $updatedBy;
  62.     /**
  63.      * @var \StdUsers
  64.      */
  65.     #[ORM\JoinColumn(name'created_by'referencedColumnName'id')]
  66.     #[ORM\ManyToOne(targetEntity'StdUsers')]
  67.     private $createdBy;
  68.     public function getId(): ?int
  69.     {
  70.         return $this->id;
  71.     }
  72.     public function getMachineName(): ?string
  73.     {
  74.         return $this->machineName;
  75.     }
  76.     public function setMachineName(?string $machineName): self
  77.     {
  78.         $this->machineName $machineName;
  79.         return $this;
  80.     }
  81.     public function getDescription(): ?string
  82.     {
  83.         return $this->description;
  84.     }
  85.     public function setDescription(string $description): self
  86.     {
  87.         $this->description $description;
  88.         return $this;
  89.     }
  90.     public function getUrl(): ?string
  91.     {
  92.         return $this->url;
  93.     }
  94.     public function setUrl(string $url): self
  95.     {
  96.         $this->url $url;
  97.         return $this;
  98.     }
  99.     public function getToken(): ?string
  100.     {
  101.         return $this->token;
  102.     }
  103.     public function setToken(string $token): self
  104.     {
  105.         $this->token $token;
  106.         return $this;
  107.     }
  108.     public function getIsActive(): ?bool
  109.     {
  110.         return $this->isActive;
  111.     }
  112.     public function setIsActive(?bool $isActive): self
  113.     {
  114.         $this->isActive $isActive;
  115.         return $this;
  116.     }
  117.     public function getCreatedDate(): ?\DateTimeInterface
  118.     {
  119.         return $this->createdDate;
  120.     }
  121.     public function setCreatedDate(?\DateTimeInterface $createdDate): self
  122.     {
  123.         $this->createdDate $createdDate;
  124.         return $this;
  125.     }
  126.     public function getUpdatedDate(): ?\DateTimeInterface
  127.     {
  128.         return $this->updatedDate;
  129.     }
  130.     public function setUpdatedDate(?\DateTimeInterface $updatedDate): self
  131.     {
  132.         $this->updatedDate $updatedDate;
  133.         return $this;
  134.     }
  135.     public function getUpdatedBy(): ?StdUsers
  136.     {
  137.         return $this->updatedBy;
  138.     }
  139.     public function setUpdatedBy(?StdUsers $updatedBy): self
  140.     {
  141.         $this->updatedBy $updatedBy;
  142.         return $this;
  143.     }
  144.     public function getCreatedBy(): ?StdUsers
  145.     {
  146.         return $this->createdBy;
  147.     }
  148.     public function setCreatedBy(?StdUsers $createdBy): self
  149.     {
  150.         $this->createdBy $createdBy;
  151.         return $this;
  152.     }
  153. }