src/Entity/TeamplayLog.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\TeamplayLogRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. use Gedmo\Mapping\Annotation as Gedmo;
  6. /**
  7.  * @ORM\Entity(repositoryClass=TeamplayLogRepository::class)
  8.  */
  9. class TeamplayLog
  10. {
  11.     /**
  12.      * @ORM\Id
  13.      * @ORM\GeneratedValue
  14.      * @ORM\Column(type="integer")
  15.      */
  16.     private $id;
  17.     /**
  18.      * @ORM\ManyToOne(targetEntity=TvUser::class, inversedBy="teamplayLogs")
  19.      */
  20.     private $tvUser;
  21.     /**
  22.      * @ORM\ManyToOne(targetEntity=User::class, inversedBy="teamplayLogs")
  23.      */
  24.     private $user;
  25.     /**
  26.      * @ORM\ManyToOne(targetEntity=TvCompany::class, inversedBy="teamplayLogs")
  27.      */
  28.     private $tvCompany;
  29.     /**
  30.      * @ORM\ManyToOne(targetEntity=Company::class, inversedBy="teamplayLogs")
  31.      */
  32.     private $company;
  33.     /**
  34.      * @ORM\ManyToOne(targetEntity=Teamplay::class, inversedBy="teamplayLogs")
  35.      * @ORM\JoinColumn(nullable=false)
  36.      */
  37.     private $teamplay;
  38.     /**
  39.      * @ORM\ManyToOne(targetEntity=TeamplayChallenge::class, inversedBy="teamplayLogs")
  40.      */
  41.     private $teamplayChallenge;
  42.     /**
  43.      * @ORM\ManyToOne(targetEntity=Team::class)
  44.      */
  45.     private $team;
  46.     /**
  47.      * @ORM\Column(type="integer", nullable=true)
  48.      */
  49.     private $pointAmount;
  50.     /**
  51.      * @ORM\Column(type="string", length=255, nullable=true)
  52.      */
  53.     private $type;
  54.     /**
  55.      * @ORM\Column(type="string", length=255, nullable=true)
  56.      */
  57.     private $subType;
  58.     /**
  59.      * @ORM\Column(type="boolean", nullable=true, options={"default": "1"})
  60.      */
  61.     private $collected true;
  62.     /**
  63.      * @ORM\Column(type="datetime", options={"default": "CURRENT_TIMESTAMP"})
  64.      * @Gedmo\Timestampable(on="create")
  65.      */
  66.     private $createdAt;
  67.     /**
  68.      * @ORM\Column(type="datetime", options={"default": "CURRENT_TIMESTAMP"})
  69.      * @Gedmo\Timestampable(on="update")
  70.      */
  71.     private $updatedAt;
  72.     public function getId(): ?int
  73.     {
  74.         return $this->id;
  75.     }
  76.     public function getTvUser(): ?TvUser
  77.     {
  78.         return $this->tvUser;
  79.     }
  80.     public function setTvUser(?TvUser $tvUser): self
  81.     {
  82.         $this->tvUser $tvUser;
  83.         return $this;
  84.     }
  85.     public function getUser(): ?User
  86.     {
  87.         return $this->user;
  88.     }
  89.     public function setUser(?User $user): self
  90.     {
  91.         $this->user $user;
  92.         return $this;
  93.     }
  94.     public function getTvCompany(): ?TvCompany
  95.     {
  96.         return $this->tvCompany;
  97.     }
  98.     public function setTvCompany(?TvCompany $tvCompany): self
  99.     {
  100.         $this->tvCompany $tvCompany;
  101.         return $this;
  102.     }
  103.     public function getCompany(): ?Company
  104.     {
  105.         return $this->company;
  106.     }
  107.     public function setCompany(?Company $company): self
  108.     {
  109.         $this->company $company;
  110.         return $this;
  111.     }
  112.     public function getTeamplay(): ?Teamplay
  113.     {
  114.         return $this->teamplay;
  115.     }
  116.     public function setTeamplay(?Teamplay $teamplay): self
  117.     {
  118.         $this->teamplay $teamplay;
  119.         return $this;
  120.     }
  121.     public function getTeamplayChallenge(): ?TeamplayChallenge
  122.     {
  123.         return $this->teamplayChallenge;
  124.     }
  125.     public function setTeamplayChallenge(?TeamplayChallenge $teamplayChallenge): self
  126.     {
  127.         $this->teamplayChallenge $teamplayChallenge;
  128.         return $this;
  129.     }
  130.     public function getPointAmount(): ?int
  131.     {
  132.         return $this->pointAmount;
  133.     }
  134.     public function setPointAmount(?int $pointAmount): self
  135.     {
  136.         $this->pointAmount $pointAmount;
  137.         return $this;
  138.     }
  139.     public function getType(): ?string
  140.     {
  141.         return $this->type;
  142.     }
  143.     public function setType(?string $type): self
  144.     {
  145.         $this->type $type;
  146.         return $this;
  147.     }
  148.     public function getSubType(): ?string
  149.     {
  150.         return $this->subType;
  151.     }
  152.     public function setSubType(?string $subType): self
  153.     {
  154.         $this->subType $subType;
  155.         return $this;
  156.     }
  157.     public function getCollected(): ?bool
  158.     {
  159.         return $this->collected;
  160.     }
  161.     public function isCollected(): ?bool
  162.     {
  163.         return $this->collected;
  164.     }
  165.     public function setCollected(?bool $collected): self
  166.     {
  167.         $this->collected $collected;
  168.         return $this;
  169.     }
  170.     public function getTeam(): ?Team
  171.     {
  172.         return $this->team;
  173.     }
  174.     public function setTeam(?Team $team): self
  175.     {
  176.         $this->team $team;
  177.         return $this;
  178.     }
  179.     public function getCreatedAt(): ?\DateTimeInterface
  180.     {
  181.         return $this->createdAt;
  182.     }
  183.     public function setCreatedAt(\DateTimeInterface $createdAt): self
  184.     {
  185.         $this->createdAt $createdAt;
  186.         return $this;
  187.     }
  188.     public function getUpdatedAt(): ?\DateTimeInterface
  189.     {
  190.         return $this->updatedAt;
  191.     }
  192.     public function setUpdatedAt(\DateTimeInterface $updatedAt): self
  193.     {
  194.         $this->updatedAt $updatedAt;
  195.         return $this;
  196.     }
  197. }