src/Entity/CommandPack.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\CommandPackRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6.  * @ORM\Entity(repositoryClass=CommandPackRepository::class)
  7.  */
  8. class CommandPack
  9. {
  10.     /**
  11.      * @ORM\Id()
  12.      * @ORM\GeneratedValue()
  13.      * @ORM\Column(type="integer")
  14.      */
  15.     private $id;
  16.     /**
  17.      * @ORM\Column(type="datetime")
  18.      */
  19.     private $createdAt;
  20.     /**
  21.      * @ORM\ManyToOne(targetEntity=Pack::class, inversedBy="commandPacks")
  22.      */
  23.     private $pack;
  24.     /**
  25.      * @ORM\ManyToOne(targetEntity=Command::class, inversedBy="commandPacks")
  26.      */
  27.     private $command;
  28.     /**
  29.      * @ORM\Column(type="string", length=10, nullable=true)
  30.      */
  31.     private $payInId;
  32.     public function __construct()
  33.     {
  34.         $this->createdAt = new \DateTime();
  35.     }
  36.     public function getId(): ?int
  37.     {
  38.         return $this->id;
  39.     }
  40.     public function getCreatedAt(): ?\DateTimeInterface
  41.     {
  42.         return $this->createdAt;
  43.     }
  44.     public function setCreatedAt(\DateTimeInterface $createdAt): self
  45.     {
  46.         $this->createdAt $createdAt;
  47.         return $this;
  48.     }
  49.     public function getPack(): ?Pack
  50.     {
  51.         return $this->pack;
  52.     }
  53.     public function setPack(?Pack $pack): self
  54.     {
  55.         $this->pack $pack;
  56.         return $this;
  57.     }
  58.     public function getCommand(): ?Command
  59.     {
  60.         return $this->command;
  61.     }
  62.     public function setCommand(?Command $command): self
  63.     {
  64.         $this->command $command;
  65.         return $this;
  66.     }
  67.     public function getPayInId(): ?string
  68.     {
  69.         return $this->payInId;
  70.     }
  71.     public function setPayInId(?string $payInId): self
  72.     {
  73.         $this->payInId $payInId;
  74.         return $this;
  75.     }
  76. }