src/Entity/ConfigTranslation.php line 30
<?php
namespace App\Entity;
use Doctrine\ORM\Mapping as ORM,
Doctrine\DBAL\Types\Types;
use Symfony\Component\Serializer\Annotation\Groups;
use ApiPlatform\Metadata\ApiProperty,
ApiPlatform\Metadata\ApiResource,
ApiPlatform\Metadata\Get;
use App\Entity\Trait\IdTrait,
App\Entity\Trait\UuidTrait,
App\Entity\Trait\SEOTrait,
App\Entity\Trait\TimestampableTrait,
App\Entity\Trait\TranslationTrait,
App\Entity\Interface\TranslationInterface,
App\Enum\Language,
App\Repository\ConfigTranslationRepository;
use App\Attribute\Sanitizeable;
#[ApiResource(
security: 'is_granted("' . Config::class . '")',
operations: [ new Get() ],
extraProperties: ['standard_put' => false],
)]
#[ORM\Entity(repositoryClass: ConfigTranslationRepository::class)]
class ConfigTranslation implements TranslationInterface
{
use IdTrait,
UuidTrait,
SEOTrait,
TimestampableTrait,
TranslationTrait;
#[ApiProperty(description: 'Title')]
#[Groups(['read', 'write'])]
#[ORM\Column(type: Types::STRING, length: 255, nullable: true)]
private ?string $title = null;
#[ApiProperty(description: 'Alert A: message')]
#[Groups(['read:' . self::class, 'write'])]
#[ORM\Column(type: Types::STRING, length: 1023, nullable: true)]
private ?string $alertAMessage = null;
#[ApiProperty(description: 'Alert A: link')]
#[Groups(['read:' . self::class, 'write'])]
#[ORM\Column(type: Types::STRING, length: 255, nullable: true)]
private ?string $alertALink = null;
#[ApiProperty(description: 'Alert B: message')]
#[Groups(['read:' . self::class, 'write'])]
#[ORM\Column(type: Types::STRING, length: 1023, nullable: true)]
private ?string $alertBMessage = null;
#[ApiProperty(description: 'Alert B: link')]
#[Groups(['read:' . self::class, 'write'])]
#[ORM\Column(type: Types::STRING, length: 255, nullable: true)]
private ?string $alertBLink = null;
#[ApiProperty(description: 'Alert C: message')]
#[Groups(['read:' . self::class, 'write'])]
#[ORM\Column(type: Types::STRING, length: 1023, nullable: true)]
private ?string $alertCMessage = null;
#[ApiProperty(description: 'Alert C: link')]
#[Groups(['read:' . self::class, 'write'])]
#[ORM\Column(type: Types::STRING, length: 255, nullable: true)]
private ?string $alertCLink = null;
#[ApiProperty(description: 'CONTACT: address')]
#[Groups(['read:' . self::class, 'write'])]
#[Sanitizeable]
#[ORM\Column(type: Types::TEXT, nullable: true)]
private ?string $contactAddress = null;
#[ApiProperty(description: 'CONTACT: support')]
#[Groups(['read:' . self::class, 'write'])]
#[Sanitizeable]
#[ORM\Column(type: Types::TEXT, nullable: true)]
private ?string $contactSupport = null;
#[ApiProperty(description: 'CONTACT: cooperation')]
#[Groups(['read:' . self::class, 'write'])]
#[Sanitizeable]
#[ORM\Column(type: Types::TEXT, nullable: true)]
private ?string $contactCooperation = null;
#[ApiProperty(description: 'Home: left block title')]
#[Groups(['read:' . self::class, 'write'])]
#[ORM\Column(type: Types::STRING, length: 255, nullable: true)]
private ?string $homeLeftBlockTitle = null;
#[ApiProperty(description: 'Home: left block text')]
#[Groups(['read:' . self::class, 'write'])]
#[ORM\Column(type: Types::TEXT, nullable: true)]
private ?string $homeLeftBlockText = null;
#[ApiProperty(description: 'Home: left block button title')]
#[Groups(['read:' . self::class, 'write'])]
#[ORM\Column(type: Types::STRING, length: 255, nullable: true)]
private ?string $homeLeftBlockButtonTitle = null;
#[ApiProperty(description: 'Home: left block button link')]
#[Groups(['read:' . self::class, 'write'])]
#[ORM\Column(type: Types::STRING, length: 255, nullable: true)]
private ?string $homeLeftBlockButtonLink = null;
#[ApiProperty(description: 'Home: right block title')]
#[Groups(['read:' . self::class, 'write'])]
#[ORM\Column(type: Types::STRING, length: 255, nullable: true)]
private ?string $homeRightBlockTitle = null;
#[ApiProperty(description: 'Home: right block text')]
#[Groups(['read:' . self::class, 'write'])]
#[ORM\Column(type: Types::TEXT, nullable: true)]
private ?string $homeRightBlockText = null;
#[ApiProperty(description: 'Home: right block button title')]
#[Groups(['read:' . self::class, 'write'])]
#[ORM\Column(type: Types::STRING, length: 255, nullable: true)]
private ?string $homeRightBlockButtonTitle = null;
#[ApiProperty(description: 'Home: right block button link')]
#[Groups(['read:' . self::class, 'write'])]
#[ORM\Column(type: Types::STRING, length: 255, nullable: true)]
private ?string $homeRightBlockButtonLink = null;
#[ApiProperty(description: 'Home: bottom block title')]
#[Groups(['read:' . self::class, 'write'])]
#[ORM\Column(type: Types::STRING, length: 255, nullable: true)]
private ?string $homeBottomBlockTitle = null;
#[ApiProperty(description: 'Home: bottom block text')]
#[Groups(['read:' . self::class, 'write'])]
#[ORM\Column(type: Types::TEXT, nullable: true)]
private ?string $homeBottomBlockText = null;
#[ApiProperty(description: 'Home: bottom block button title')]
#[Groups(['read:' . self::class, 'write'])]
#[ORM\Column(type: Types::STRING, length: 255, nullable: true)]
private ?string $homeBottomBlockButtonTitle = null;
#[ApiProperty(description: 'Home: bottom block button link')]
#[Groups(['read:' . self::class, 'write'])]
#[ORM\Column(type: Types::STRING, length: 255, nullable: true)]
private ?string $homeBottomBlockButtonLink = null;
public function __construct(Config $parent, Language $lang)
{
$this->setUuid();
$this->parent = $parent;
$this->lang = $lang;
$this->createdAt = new \DateTimeImmutable();
$this->updatedAt = new \DateTimeImmutable();
$parent->addTranslation($this);
}
public function getTitle(): ?string
{
return $this->title;
}
public function setTitle(?string $title): self
{
$this->title = $title;
return $this;
}
public function getAlertAMessage(): ?string
{
return $this->alertAMessage;
}
public function setAlertAMessage(?string $alertAMessage): self
{
$this->alertAMessage = $alertAMessage;
return $this;
}
public function getAlertALink(): ?string
{
return $this->alertALink;
}
public function setAlertALink(?string $alertALink): self
{
$this->alertALink = $alertALink;
return $this;
}
public function getAlertBMessage(): ?string
{
return $this->alertBMessage;
}
public function setAlertBMessage(?string $alertBMessage): self
{
$this->alertBMessage = $alertBMessage;
return $this;
}
public function getAlertBLink(): ?string
{
return $this->alertBLink;
}
public function setAlertBLink(?string $alertBLink): self
{
$this->alertBLink = $alertBLink;
return $this;
}
public function getAlertCMessage(): ?string
{
return $this->alertCMessage;
}
public function setAlertCMessage(?string $alertCMessage): self
{
$this->alertCMessage = $alertCMessage;
return $this;
}
public function getAlertCLink(): ?string
{
return $this->alertCLink;
}
public function setAlertCLink(?string $alertCLink): self
{
$this->alertCLink = $alertCLink;
return $this;
}
public function getContactAddress(): ?string
{
return $this->contactAddress;
}
public function setContactAddress(?string $contactAddress): self
{
$this->contactAddress = $contactAddress;
return $this;
}
public function getContactSupport(): ?string
{
return $this->contactSupport;
}
public function setContactSupport(?string $contactSupport): self
{
$this->contactSupport = $contactSupport;
return $this;
}
public function getContactCooperation(): ?string
{
return $this->contactCooperation;
}
public function setContactCooperation(?string $contactCooperation): self
{
$this->contactCooperation = $contactCooperation;
return $this;
}
public function getHomeLeftBlockTitle(): ?string
{
return $this->homeLeftBlockTitle;
}
public function setHomeLeftBlockTitle(?string $homeLeftBlockTitle): self
{
$this->homeLeftBlockTitle = $homeLeftBlockTitle;
return $this;
}
public function getHomeLeftBlockText(): ?string
{
return $this->homeLeftBlockText;
}
public function setHomeLeftBlockText(?string $homeLeftBlockText): self
{
$this->homeLeftBlockText = $homeLeftBlockText;
return $this;
}
public function getHomeLeftBlockButtonTitle(): ?string
{
return $this->homeLeftBlockButtonTitle;
}
public function setHomeLeftBlockButtonTitle(?string $homeLeftBlockButtonTitle): self
{
$this->homeLeftBlockButtonTitle = $homeLeftBlockButtonTitle;
return $this;
}
public function getHomeLeftBlockButtonLink(): ?string
{
return $this->homeLeftBlockButtonLink;
}
public function setHomeLeftBlockButtonLink(?string $homeLeftBlockButtonLink): self
{
$this->homeLeftBlockButtonLink = $homeLeftBlockButtonLink;
return $this;
}
public function getHomeRightBlockTitle(): ?string
{
return $this->homeRightBlockTitle;
}
public function setHomeRightBlockTitle(?string $homeRightBlockTitle): self
{
$this->homeRightBlockTitle = $homeRightBlockTitle;
return $this;
}
public function getHomeRightBlockText(): ?string
{
return $this->homeRightBlockText;
}
public function setHomeRightBlockText(?string $homeRightBlockText): self
{
$this->homeRightBlockText = $homeRightBlockText;
return $this;
}
public function getHomeRightBlockButtonTitle(): ?string
{
return $this->homeRightBlockButtonTitle;
}
public function setHomeRightBlockButtonTitle(?string $homeRightBlockButtonTitle): self
{
$this->homeRightBlockButtonTitle = $homeRightBlockButtonTitle;
return $this;
}
public function getHomeRightBlockButtonLink(): ?string
{
return $this->homeRightBlockButtonLink;
}
public function setHomeRightBlockButtonLink(?string $homeRightBlockButtonLink): self
{
$this->homeRightBlockButtonLink = $homeRightBlockButtonLink;
return $this;
}
public function getHomeBottomBlockTitle(): ?string
{
return $this->homeBottomBlockTitle;
}
public function setHomeBottomBlockTitle(?string $homeBottomBlockTitle): self
{
$this->homeBottomBlockTitle = $homeBottomBlockTitle;
return $this;
}
public function getHomeBottomBlockText(): ?string
{
return $this->homeBottomBlockText;
}
public function setHomeBottomBlockText(?string $homeBottomBlockText): self
{
$this->homeBottomBlockText = $homeBottomBlockText;
return $this;
}
public function getHomeBottomBlockButtonTitle(): ?string
{
return $this->homeBottomBlockButtonTitle;
}
public function setHomeBottomBlockButtonTitle(?string $homeBottomBlockButtonTitle): self
{
$this->homeBottomBlockButtonTitle = $homeBottomBlockButtonTitle;
return $this;
}
public function getHomeBottomBlockButtonLink(): ?string
{
return $this->homeBottomBlockButtonLink;
}
public function setHomeBottomBlockButtonLink(?string $homeBottomBlockButtonLink): self
{
$this->homeBottomBlockButtonLink = $homeBottomBlockButtonLink;
return $this;
}
}