<?php
namespace App\Entity;
use App\Repository\TeamplayLogRepository;
use Doctrine\ORM\Mapping as ORM;
use Gedmo\Mapping\Annotation as Gedmo;
/**
* @ORM\Entity(repositoryClass=TeamplayLogRepository::class)
*/
class TeamplayLog
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\ManyToOne(targetEntity=TvUser::class, inversedBy="teamplayLogs")
*/
private $tvUser;
/**
* @ORM\ManyToOne(targetEntity=User::class, inversedBy="teamplayLogs")
*/
private $user;
/**
* @ORM\ManyToOne(targetEntity=TvCompany::class, inversedBy="teamplayLogs")
*/
private $tvCompany;
/**
* @ORM\ManyToOne(targetEntity=Company::class, inversedBy="teamplayLogs")
*/
private $company;
/**
* @ORM\ManyToOne(targetEntity=Teamplay::class, inversedBy="teamplayLogs")
* @ORM\JoinColumn(nullable=false)
*/
private $teamplay;
/**
* @ORM\ManyToOne(targetEntity=TeamplayChallenge::class, inversedBy="teamplayLogs")
*/
private $teamplayChallenge;
/**
* @ORM\ManyToOne(targetEntity=Team::class)
*/
private $team;
/**
* @ORM\Column(type="integer", nullable=true)
*/
private $pointAmount;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $type;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $subType;
/**
* @ORM\Column(type="boolean", nullable=true, options={"default": "1"})
*/
private $collected = true;
/**
* @ORM\Column(type="datetime", options={"default": "CURRENT_TIMESTAMP"})
* @Gedmo\Timestampable(on="create")
*/
private $createdAt;
/**
* @ORM\Column(type="datetime", options={"default": "CURRENT_TIMESTAMP"})
* @Gedmo\Timestampable(on="update")
*/
private $updatedAt;
public function getId(): ?int
{
return $this->id;
}
public function getTvUser(): ?TvUser
{
return $this->tvUser;
}
public function setTvUser(?TvUser $tvUser): self
{
$this->tvUser = $tvUser;
return $this;
}
public function getUser(): ?User
{
return $this->user;
}
public function setUser(?User $user): self
{
$this->user = $user;
return $this;
}
public function getTvCompany(): ?TvCompany
{
return $this->tvCompany;
}
public function setTvCompany(?TvCompany $tvCompany): self
{
$this->tvCompany = $tvCompany;
return $this;
}
public function getCompany(): ?Company
{
return $this->company;
}
public function setCompany(?Company $company): self
{
$this->company = $company;
return $this;
}
public function getTeamplay(): ?Teamplay
{
return $this->teamplay;
}
public function setTeamplay(?Teamplay $teamplay): self
{
$this->teamplay = $teamplay;
return $this;
}
public function getTeamplayChallenge(): ?TeamplayChallenge
{
return $this->teamplayChallenge;
}
public function setTeamplayChallenge(?TeamplayChallenge $teamplayChallenge): self
{
$this->teamplayChallenge = $teamplayChallenge;
return $this;
}
public function getPointAmount(): ?int
{
return $this->pointAmount;
}
public function setPointAmount(?int $pointAmount): self
{
$this->pointAmount = $pointAmount;
return $this;
}
public function getType(): ?string
{
return $this->type;
}
public function setType(?string $type): self
{
$this->type = $type;
return $this;
}
public function getSubType(): ?string
{
return $this->subType;
}
public function setSubType(?string $subType): self
{
$this->subType = $subType;
return $this;
}
public function getCollected(): ?bool
{
return $this->collected;
}
public function isCollected(): ?bool
{
return $this->collected;
}
public function setCollected(?bool $collected): self
{
$this->collected = $collected;
return $this;
}
public function getTeam(): ?Team
{
return $this->team;
}
public function setTeam(?Team $team): self
{
$this->team = $team;
return $this;
}
public function getCreatedAt(): ?\DateTimeInterface
{
return $this->createdAt;
}
public function setCreatedAt(\DateTimeInterface $createdAt): self
{
$this->createdAt = $createdAt;
return $this;
}
public function getUpdatedAt(): ?\DateTimeInterface
{
return $this->updatedAt;
}
public function setUpdatedAt(\DateTimeInterface $updatedAt): self
{
$this->updatedAt = $updatedAt;
return $this;
}
}