<?php
namespace App\Entity;
use App\Entity\Translation\PlayerTranslation;
use App\Repository\PlayerRepository;
use DateTime;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\Common\Collections\Collection;
use Doctrine\ORM\Mapping as ORM;
use Gedmo\Mapping\Annotation as Gedmo;
use Symfony\Component\HttpFoundation\File\File;
use Symfony\Component\HttpFoundation\File\UploadedFile;
use Symfony\Component\Serializer\Annotation\Groups;
use Symfony\Component\Serializer\Annotation\Ignore;
use Vich\UploaderBundle\Mapping\Annotation as Vich;
use Symfony\Component\Validator\Constraints as Assert;
/**
* @ORM\Entity(repositoryClass=PlayerRepository::class)
* @Gedmo\TranslationEntity(class="App\Entity\Translation\PlayerTranslation")
* @Gedmo\SoftDeleteable(fieldName="deletedAt", timeAware=false, hardDelete=true)
* @Vich\Uploadable
*/
class Player
{
use SetTranslationsTrait;
public const FIELDS = [
'game',
'birthPlace'
];
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
* @Groups({"player:list", "player:item","atpmatch_result:list","atpmatch_result:item","round:list", "round:item","drawline:list", "drawline:item","event:list","event:item"})
*/
private $id;
/**
* @ORM\Column(type="string", length=255)
* @Groups({"player:list", "player:item","atpmatch_result:list","atpmatch_result:item","round:list", "round:item","drawline:list", "drawline:item","event:list","event:item"})
*/
private $name;
/**
* @ORM\Column(type="string", length=255)
* @Groups({"player:list", "player:item","atpmatch_result:list", "atpmatch_result:item","round:list","round:item","drawline:list", "drawline:item","event:list","event:item"})
*/
private $surname;
/**
* @ORM\Column(type="integer",nullable=true)
* @Groups({"player:list", "player:item","atpmatch_result:list", "atpmatch_result:item","event:list","event:item"})
*/
private $ranking;
/**
* @ORM\Column(type="string", nullable=true)
* @Groups({"player:list", "player:item","atpmatch_result:list", "atpmatch_result:item", "atpmatch_result:list", "atpmatch_result:item"})
*/
private $weight;
/**
* @ORM\Column(type="string",nullable=true)
* @Groups({"player:list", "player:item","atpmatch_result:list", "atpmatch_result:item", "atpmatch_result:list", "atpmatch_result:item"})
*/
private $height;
/**
* @ORM\Column(type="string")
* @Groups({"player:list", "player:item","round:list", "round:item"})
* @var string|null
*
*/
private $imageName;
/**
* @ORM\Column(type="integer")
*
* @var int|null
* @Ignore()
*/
private $imageSize;
/**
* @ORM\Column(type="string")
* @Groups({"player:list", "player:item"})
* @var string|null
*
*/
private $thumbnailName;
/**
* @ORM\Column(type="integer")
*
* @var int|null
* @Ignore()
*/
private $thumbnailSize;
/**
* @ORM\ManyToOne(targetEntity=Country::class, inversedBy="players")
* @Groups({"atpmatch_result:list", "atpmatch_result:item","player:list", "player:item","round:list", "round:item","event:list","event:item"})
* @ORM\JoinColumn(nullable=false)
*/
private $country;
/**
* @ORM\ManyToMany(targetEntity=User::class, mappedBy="favoritePlayers")
* @Ignore()
*/
private $users;
/**
* @ORM\Column(type="datetime", nullable=true)
* @Groups({"player:list", "player:item"})
* @var DateTime|null
*/
protected $deletedAt;
/**
* @var bool
* @Groups("player:list", "player:item")
*/
private $isFavorite = false;
/**
* @var DateTime
* @Gedmo\Timestampable(on="create")
* @ORM\Column(type="datetime")
* @Groups({"player:list", "player:item"})
*/
protected $createdAt;
/**
* @var DateTime
* @Gedmo\Timestampable(on="update")
* @ORM\Column(type="datetime")
* @Groups({"player:list", "player:item"})
*/
protected $updatedAt;
/**
* @Assert\File(
* mimeTypes = {"image/jpeg", "image/gif", "image/png", "image/jpg"},
* mimeTypesMessage = "Wrong file type (jpeg,gif,png,jpg)"
* )
* @Vich\UploadableField(mapping="player", fileNameProperty="imageName", size="imageSize")
* @var File|null
*/
private $imageFile;
/**
* @Assert\File(
* mimeTypes = {"image/jpeg", "image/gif", "image/png", "image/jpg"},
* mimeTypesMessage = "Wrong file type (jpeg,gif,png,jpg)"
* )
* @Vich\UploadableField(mapping="player", fileNameProperty="thumbnailName", size="thumbnailSize")
* @var File|null
*/
private $thumbnailFile;
/**
* @ORM\Column(type="string", length=255, nullable=true)
* @Gedmo\Translatable
* @Groups({"player:list", "player:item"})
*/
private $game;
/**
* @var string
* @Ignore()
*/
private $gameEn;
/**
* @var string
* @Ignore()
*/
private $gameCa;
/**
* @ORM\Column(type="string", length=255, nullable=true)
* @Groups({"player:list", "player:item"})
*
*/
private $professionalSince;
/**
* @ORM\Column(type="string", length=255, nullable=true)
* @Groups({"player:list", "player:item"})
*/
private $coach;
/**
* @ORM\Column(type="string", length=255, nullable=true)
* @Gedmo\Translatable
* @Groups({"player:list", "player:item"})
*/
private $birthPlace;
/**
* @var string
* @Ignore()
*/
private $birthPlaceEn;
/**
* @var string
* @Ignore()
*/
private $birthPlaceCa;
/**
* @ORM\Column(type="string", length=255, nullable=true)
* @Groups({"player:list", "player:item"})
*/
private $residence;
/**
* @Gedmo\Locale
* @Groups("player:list", "player:item")
*/
private $locale;
/**
* @ORM\OneToMany(
* targetEntity="App\Entity\Translation\PlayerTranslation",
* mappedBy="object",
* cascade={"persist", "remove"}
* )
* @Ignore()
*/
private $translations;
/**
* @ORM\Column(type="integer", nullable=true)
* @Groups({"player:list", "player:item"})
*/
private $maxRanking;
/**
* @ORM\Column(type="integer", nullable=true)
* @Groups({"player:list", "player:item"})
*/
private $age;
/**
* @ORM\Column(type="string", length=255, nullable=true)
* @Groups({"atpmatch_result:list", "atpmatch_result:item","player:list", "player:item","round:list", "round:item","event:list","event:item"})
*/
private $apiId;
/**
* @ORM\Column(type="string", length=32, nullable=true)
* @Groups({"player:list", "player:item"})
*/
private $gender;
/**
* @ORM\Column(type="string", length=64, nullable=true)
* @Groups({"player:list", "player:item"})
*/
private $playHand;
/**
* @ORM\Column(type="string", length=64, nullable=true)
* @Groups({"player:list", "player:item"})
*/
private $backHand;
/**
* @ORM\Column(type="integer", nullable=true)
* @Groups({"player:list", "player:item"})
*/
private $careerPrizeMoney;
/**
* @ORM\Column(type="integer", nullable=true)
* @Groups({"player:list", "player:item"})
*/
private $careerTitles;
/**
* @ORM\Column(type="integer", nullable=true)
* @Groups({"player:list", "player:item"})
*/
private $careerWins;
/**
* @ORM\Column(type="integer", nullable=true)
* @Groups({"player:list", "player:item"})
*/
private $careerLosses;
/**
* @ORM\Column(type="boolean", nullable=true)
* @Groups({"player:list", "player:item"})
*/
private $alternate;
/**
* @ORM\Column(type="string", length=255, nullable=true)
* @Groups({"player:list", "player:item"})
*/
private $seed;
/**
* @ORM\Column(type="string", length=255, nullable=true)
* @Groups({"player:list", "player:item"})
*
*/
private $entryCode;
/**
* @ORM\OneToMany(targetEntity=MatchTeam::class, mappedBy="players")
* @Ignore()
*/
private $matchTeams;
/**
* @ORM\OneToMany(targetEntity=TeamPlayer::class, mappedBy="player")
*/
private $teamPlayers;
/**
* @ORM\ManyToMany(targetEntity=DrawLine::class, mappedBy="players")
*/
private $drawLines;
/**
* @ORM\OneToMany(targetEntity=TeamPlayer::class, mappedBy="partner")
*/
private $teamPlayerPartner;
/**
* @ORM\Column(type="integer", nullable=true)
*/
private $orderInTeam;
/**
* @ORM\OneToMany(targetEntity=RoundResultTeam::class, mappedBy="player")
*/
private $roundResultTeamPlayer;
/**
* @ORM\OneToMany(targetEntity=RoundResultTeam::class, mappedBy="partner")
*/
private $roundResultTeamPartner;
/**
* @ORM\Column(type="string", length=255, nullable=true)
* @var string|null
*
* @Ignore()
*/
private $imageNameEn;
/**
* @ORM\Column(type="integer", nullable=true)
*
* @var int|null
* @Ignore()
*/
private $imageSizeEn;
/**
* @ORM\Column(type="string", length=255, nullable=true)
* @var string|null
*
* @Ignore()
*/
private $imageNameCa;
/**
* @ORM\Column(type="integer", nullable=true)
*
* @var int|null
* @Ignore()
*/
private $imageSizeCa;
/**
* @ORM\Column(type="string", length=255, nullable=true)
* @var string|null
*
* @Ignore()
*/
private $thumbnailNameEn;
/**
* @ORM\Column(type="integer", nullable=true)
*
* @var int|null
* @Ignore()
*/
private $thumbnailSizeEn;
/**
* @ORM\Column(type="string", length=255, nullable=true)
* @var string|null
*
* @Ignore()
*/
private $thumbnailNameCa;
/**
* @ORM\Column(type="integer", nullable=true)
*
* @var int|null
* @Ignore()
*/
private $thumbnailSizeCa;
/**
* @Assert\File(
* mimeTypes = {"image/jpeg", "image/gif", "image/png", "image/jpg"},
* mimeTypesMessage = "Wrong file type (jpeg,gif,png,jpg)"
* )
* @Vich\UploadableField(mapping="player", fileNameProperty="imageNameEn", size="imageSizeEn")
* @var File|null
*/
private $imageFileEn;
/**
* @Assert\File(
* mimeTypes = {"image/jpeg", "image/gif", "image/png", "image/jpg"},
* mimeTypesMessage = "Wrong file type (jpeg,gif,png,jpg)"
* )
* @Vich\UploadableField(mapping="player", fileNameProperty="imageNameCa", size="imageSizeCa")
* @var File|null
*/
private $imageFileCa;
/**
* @Assert\File(
* mimeTypes = {"image/jpeg", "image/gif", "image/png", "image/jpg"},
* mimeTypesMessage = "Wrong file type (jpeg,gif,png,jpg)"
* )
* @Vich\UploadableField(mapping="player", fileNameProperty="thumbnailNameEn", size="thumbnailSizeEn")
* @var File|null
*/
private $thumbnailFileEn;
/**
* @Assert\File(
* mimeTypes = {"image/jpeg", "image/gif", "image/png", "image/jpg"},
* mimeTypesMessage = "Wrong file type (jpeg,gif,png,jpg)"
* )
* @Vich\UploadableField(mapping="player", fileNameProperty="thumbnailNameCa", size="thumbnailSizeCa")
* @var File|null
*/
private $thumbnailFileCa;
public function __construct()
{
$this->users = new ArrayCollection();
$this->translations = new ArrayCollection();
$this->matchTeams = new ArrayCollection();
$this->teamPlayers = new ArrayCollection();
$this->drawLines = new ArrayCollection();
$this->teamPlayerPartner = new ArrayCollection();
$this->roundResultTeamPlayer = new ArrayCollection();
$this->roundResultTeamPartner = new ArrayCollection();
}
public function __toString()
{
return $this->name.' '.$this->surname;
}
/**
* Sets createdAt.
*
* @return $this
*/
public function setCreatedAt(DateTime $createdAt): Player
{
$this->createdAt = $createdAt;
return $this;
}
/**
* Returns createdAt.
*
* @return DateTime
*/
public function getCreatedAt(): DateTime
{
return $this->createdAt;
}
/**
* Sets updatedAt.
*
* @return $this
*/
public function setUpdatedAt(DateTime $updatedAt): Player
{
$this->updatedAt = $updatedAt;
return $this;
}
/**
* Returns updatedAt.
*
* @return DateTime
*/
public function getUpdatedAt(): DateTime
{
return $this->updatedAt;
}
/**
* Set or clear the deleted at timestamp.
*
* @param DateTime|null $deletedAt
* @return self
*/
public function setDeletedAt(DateTime $deletedAt = null): Player
{
$this->deletedAt = $deletedAt;
return $this;
}
/**
* Get the deleted at timestamp value. Will return null if
* the entity has not been soft deleted.
*
* @return DateTime|null
*/
public function getDeletedAt(): ?DateTime
{
return $this->deletedAt;
}
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 getSurname(): ?string
{
return $this->surname;
}
public function setSurname(string $surname): self
{
$this->surname = $surname;
return $this;
}
public function getRanking(): ?int
{
return $this->ranking;
}
public function setRanking(?int $ranking): self
{
$this->ranking = $ranking;
return $this;
}
public function getWeight(): ?string
{
return $this->weight;
}
public function setWeight(?string $weight): self
{
$this->weight = $weight;
return $this;
}
public function getHeight(): ?string
{
return $this->height;
}
public function setHeight(string $height): self
{
$this->height = $height;
return $this;
}
/**
* @param File|UploadedFile|null $imageFile
*/
public function setImageFile(?File $imageFile = null): void
{
$this->imageFile = $imageFile;
if (null !== $imageFile) {
$this->updatedAt = new \DateTimeImmutable();
}
}
public function getImageFile(): ?File
{
return $this->imageFile;
}
public function setImageName(?string $imageName): void
{
$this->imageName = $imageName;
}
public function getImageName(): ?string
{
return $this->imageName;
}
public function setImageSize(?int $imageSize): void
{
$this->imageSize = $imageSize;
}
public function getImageSize(): ?int
{
return $this->imageSize;
}
/**
* @param File|UploadedFile|null $thumbnailFile
*/
public function setThumbnailFile(?File $thumbnailFile = null): void
{
$this->thumbnailFile = $thumbnailFile;
if (null !== $thumbnailFile) {
$this->updatedAt = new \DateTimeImmutable();
}
}
public function getThumbnailFile(): ?File
{
return $this->thumbnailFile;
}
public function setThumbnailName(?string $thumbnailName): void
{
$this->thumbnailName = $thumbnailName;
}
public function getThumbnailName(): ?string
{
return $this->thumbnailName;
}
public function setThumbnailSize(?int $thumbnailSize): void
{
$this->thumbnailSize = $thumbnailSize;
}
public function getThumbnailSize(): ?int
{
return $this->thumbnailSize;
}
public function getCountry(): ?Country
{
return $this->country;
}
public function setCountry(?Country $country): self
{
$this->country = $country;
return $this;
}
/**
* @return Collection|User[]
*/
public function getUsers(): Collection
{
return $this->users;
}
public function addUser(User $user): self
{
if (!$this->users->contains($user)) {
$this->users[] = $user;
$user->addFavoritePlayer($this);
}
return $this;
}
public function removeUser(User $user): self
{
if ($this->users->removeElement($user)) {
$user->removeFavoritePlayer($this);
}
return $this;
}
public function getGame(): ?string
{
return $this->game;
}
public function setGame(?string $game): self
{
$this->game = $game;
return $this;
}
public function getProfessionalSince(): ?string
{
return $this->professionalSince;
}
public function setProfessionalSince(?string $professionalSince): self
{
$this->professionalSince = $professionalSince;
return $this;
}
public function getCoach(): ?string
{
return $this->coach;
}
public function setCoach(?string $coach): self
{
$this->coach = $coach;
return $this;
}
public function getBirthPlace(): ?string
{
return $this->birthPlace;
}
public function setBirthPlace(?string $birthPlace): self
{
$this->birthPlace = $birthPlace;
return $this;
}
public function getResidence(): ?string
{
return $this->residence;
}
public function setResidence(?string $residence): self
{
$this->residence = $residence;
return $this;
}
public function getMaxRanking(): ?int
{
return $this->maxRanking;
}
public function setMaxRanking(?int $maxRanking): self
{
$this->maxRanking = $maxRanking;
return $this;
}
/**
* @return bool
* @Groups({"player:list", "player:item"})
*/
public function isFavorite(): bool
{
return $this->isFavorite;
}
/**
* @param bool $isFavorite
*/
public function setIsFavorite(bool $isFavorite): void
{
$this->isFavorite = $isFavorite;
}
public function getAge(): ?int
{
return $this->age;
}
public function setAge(?int $age): self
{
$this->age = $age;
return $this;
}
/**
* @return string
*/
public function getBirthPlaceEn(): ?string
{
return $this->birthPlaceEn;
}
/**
* @param string|null $birthPlaceEn
*/
public function setBirthPlaceEn(?string $birthPlaceEn): void
{
$this->birthPlaceEn = $birthPlaceEn;
}
/**
* @return string
*/
public function getBirthPlaceCa(): ?string
{
return $this->birthPlaceCa;
}
/**
* @param string|null $birthPlaceCa
*/
public function setBirthPlaceCa(?string $birthPlaceCa): void
{
$this->birthPlaceCa = $birthPlaceCa;
}
public function setTranslatableLocale($locale)
{
$this->locale = $locale;
}
public function getTranslations()
{
return $this->translations;
}
public function addTranslation(PlayerTranslation $t)
{
if (!$this->translations->contains($t)) {
$this->translations[] = $t;
$t->setObject($this);
}
}
/**
* @return string
*/
public function getGameEn(): ?string
{
return $this->gameEn;
}
/**
* @param string|null $gameEn
*/
public function setGameEn(?string $gameEn): void
{
$this->gameEn = $gameEn;
}
/**
* @return string
*/
public function getGameCa(): ?string
{
return $this->gameCa;
}
/**
* @param string|null $gameCa
*/
public function setGameCa(?string $gameCa): void
{
$this->gameCa = $gameCa;
}
public function getApiId(): ?string
{
return $this->apiId;
}
public function setApiId(?string $apiId): self
{
$this->apiId = $apiId;
return $this;
}
public function getGender(): ?string
{
return $this->gender;
}
public function setGender(?string $gender): self
{
$this->gender = $gender;
return $this;
}
public function getPlayHand(): ?string
{
return $this->playHand;
}
public function setPlayHand(?string $playHand): self
{
$this->playHand = $playHand;
return $this;
}
public function getBackHand(): ?string
{
return $this->backHand;
}
public function setBackHand(?string $backHand): self
{
$this->backHand = $backHand;
return $this;
}
public function getCareerPrizeMoney(): ?int
{
return $this->careerPrizeMoney;
}
public function setCareerPrizeMoney(?int $careerPrizeMoney): self
{
$this->careerPrizeMoney = $careerPrizeMoney;
return $this;
}
public function getCareerTitles(): ?int
{
return $this->careerTitles;
}
public function setCareerTitles(?int $careerTitles): self
{
$this->careerTitles = $careerTitles;
return $this;
}
public function getCareerWins(): ?int
{
return $this->careerWins;
}
public function setCareerWins(?int $careerWins): self
{
$this->careerWins = $careerWins;
return $this;
}
public function getCareerLosses(): ?int
{
return $this->careerLosses;
}
public function setCareerLosses(?int $careerLosses): self
{
$this->careerLosses = $careerLosses;
return $this;
}
public function getAlternate(): ?bool
{
return $this->alternate;
}
public function setAlternate(?bool $alternate): self
{
$this->alternate = $alternate;
return $this;
}
public function getSeed(): ?string
{
return $this->seed;
}
public function setSeed(?string $seed): self
{
$this->seed = $seed;
return $this;
}
public function getEntryCode(): ?string
{
return $this->entryCode;
}
public function setEntryCode(?string $entry): self
{
$this->entryCode = $entry;
return $this;
}
/**
* @return Collection|MatchTeam[]
*/
public function getMatchTeams(): Collection
{
return $this->matchTeams;
}
public function addMatchTeam(MatchTeam $matchTeam): self
{
if (!$this->matchTeams->contains($matchTeam)) {
$this->matchTeams[] = $matchTeam;
$matchTeam->setPlayers($this);
}
return $this;
}
public function removeMatchTeam(MatchTeam $matchTeam): self
{
if ($this->matchTeams->removeElement($matchTeam)) {
// set the owning side to null (unless already changed)
if ($matchTeam->getPlayers() === $this) {
$matchTeam->setPlayers(null);
}
}
return $this;
}
//TODO Revisar que esta dando error con un id en columna desconocida
/*
public function getTeamPlayer(): ?TeamPlayer
{
return $this->teamPlayer;
}
public function setTeamPlayer(TeamPlayer $teamPlayer): self
{
// set the owning side of the relation if necessary
if ($teamPlayer->getPlayer() !== $this) {
$teamPlayer->setPlayer($this);
}
$this->teamPlayer = $teamPlayer;
return $this;
}*/
/**
* @return Collection|TeamPlayer[]
*/
public function getTeamPlayers(): Collection
{
return $this->teamPlayers;
}
public function addTeamPlayer(TeamPlayer $teamPlayer): self
{
if (!$this->teamPlayers->contains($teamPlayer)) {
$this->teamPlayers[] = $teamPlayer;
$teamPlayer->setPlayer($this);
}
return $this;
}
public function removeTeamPlayer(TeamPlayer $teamPlayer): self
{
if ($this->teamPlayers->removeElement($teamPlayer)) {
// set the owning side to null (unless already changed)
if ($teamPlayer->getPlayer() === $this) {
$teamPlayer->setPlayer(null);
}
}
return $this;
}
/**
* @return Collection<int, DrawLine>
*/
public function getDrawLines(): Collection
{
return $this->drawLines;
}
public function addDrawLine(DrawLine $drawLine): self
{
if (!$this->drawLines->contains($drawLine)) {
$this->drawLines[] = $drawLine;
$drawLine->addPlayer($this);
}
return $this;
}
public function removeDrawLine(DrawLine $drawLine): self
{
if ($this->drawLines->removeElement($drawLine)) {
$drawLine->removePlayer($this);
}
return $this;
}
/**
* @return Collection|TeamPlayer[]
*/
public function getTeamPlayerPartner(): Collection
{
return $this->teamPlayerPartner;
}
public function addTeamPlayerPartner(TeamPlayer $teamPlayerPartner): self
{
if (!$this->teamPlayerPartner->contains($teamPlayerPartner)) {
$this->teamPlayerPartner[] = $teamPlayerPartner;
$teamPlayerPartner->setPartner($this);
}
return $this;
}
public function removeTeamPlayerPartner(TeamPlayer $teamPlayerPartner): self
{
if ($this->teamPlayerPartner->removeElement($teamPlayerPartner)) {
// set the owning side to null (unless already changed)
if ($teamPlayerPartner->getPartner() === $this) {
$teamPlayerPartner->setPartner(null);
}
}
return $this;
}
public function getOrderInTeam(): ?int
{
return $this->orderInTeam;
}
public function setOrderInTeam(?int $orderInTeam): self
{
$this->orderInTeam = $orderInTeam;
return $this;
}
/**
* @return ArrayCollection
*/
public function getRoundResultTeamPlayer(): ArrayCollection
{
return $this->roundResultTeamPlayer;
}
/**
* @param ArrayCollection $roundResultTeamPlayer
*/
public function setRoundResultTeamPlayer(ArrayCollection $roundResultTeamPlayer): void
{
$this->roundResultTeamPlayer = $roundResultTeamPlayer;
}
/**
* @return ArrayCollection
*/
public function getRoundResultTeamPartner(): ArrayCollection
{
return $this->roundResultTeamPartner;
}
/**
* @param ArrayCollection $roundResultTeamPartner
*/
public function setRoundResultTeamPartner(ArrayCollection $roundResultTeamPartner): void
{
$this->roundResultTeamPartner = $roundResultTeamPartner;
}
public function getImageNameEn(): ?string
{
return $this->imageNameEn;
}
public function setImageNameEn(?string $imageNameEn): self
{
$this->imageNameEn = $imageNameEn;
return $this;
}
public function getImageSizeEn(): ?int
{
return $this->imageSizeEn;
}
public function setImageSizeEn(?int $imageSizeEn): self
{
$this->imageSizeEn = $imageSizeEn;
return $this;
}
public function getImageNameCa(): ?string
{
return $this->imageNameCa;
}
public function setImageNameCa(?string $imageNameCa): self
{
$this->imageNameCa = $imageNameCa;
return $this;
}
public function getImageSizeCa(): ?int
{
return $this->imageSizeCa;
}
public function setImageSizeCa(?int $imageSizeCa): self
{
$this->imageSizeCa = $imageSizeCa;
return $this;
}
public function getThumbnailNameEn(): ?string
{
return $this->thumbnailNameEn;
}
public function setThumbnailNameEn(?string $thumbnailNameEn): self
{
$this->thumbnailNameEn = $thumbnailNameEn;
return $this;
}
public function getThumbnailSizeEn(): ?int
{
return $this->thumbnailSizeEn;
}
public function setThumbnailSizeEn(?int $thumbnailSizeEn): self
{
$this->thumbnailSizeEn = $thumbnailSizeEn;
return $this;
}
public function getThumbnailNameCa(): ?string
{
return $this->thumbnailNameCa;
}
public function setThumbnailNameCa(?string $thumbnailNameCa): self
{
$this->thumbnailNameCa = $thumbnailNameCa;
return $this;
}
public function getThumbnailSizeCa(): ?int
{
return $this->thumbnailSizeCa;
}
public function setThumbnailSizeCa(?int $thumbnailSizeCa): self
{
$this->thumbnailSizeCa = $thumbnailSizeCa;
return $this;
}
/**
* @param File|UploadedFile|null $imageFileEn
*/
public function setImageFileEn(?File $imageFileEn = null): void
{
$this->imageFileEn = $imageFileEn;
if (null !== $imageFileEn) {
$this->updatedAt = new \DateTimeImmutable();
}
}
public function getImageFileEn(): ?File
{
return $this->imageFileEn;
}
/**
* @param File|UploadedFile|null $imageFileCa
*/
public function setImageFileCa(?File $imageFileCa = null): void
{
$this->imageFileCa = $imageFileCa;
if (null !== $imageFileCa) {
$this->updatedAt = new \DateTimeImmutable();
}
}
public function getImageFileCa(): ?File
{
return $this->imageFileCa;
}
/**
* @param File|UploadedFile|null $thumbnailFileEn
*/
public function setThumbnailFileEn(?File $thumbnailFileEn = null): void
{
$this->thumbnailFileEn = $thumbnailFileEn;
if (null !== $thumbnailFileEn) {
$this->updatedAt = new \DateTimeImmutable();
}
}
public function getThumbnailFileEn(): ?File
{
return $this->thumbnailFileEn;
}
/**
* @param File|UploadedFile|null $thumbnailFileCa
*/
public function setThumbnailFileCa(?File $thumbnailFileCa = null): void
{
$this->thumbnailFileCa = $thumbnailFileCa;
if (null !== $thumbnailFileCa) {
$this->updatedAt = new \DateTimeImmutable();
}
}
public function getThumbnailFileCa(): ?File
{
return $this->thumbnailFileCa;
}
}