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: 'Proces zakupowy: zgoda1')]
#[Groups(['read:' . self::class, 'write'])]
#[ORM\Column(type: Types::TEXT, nullable: true)]
private ?string $shopRules1 = null;
#[ApiProperty(description: 'Proces zakupowy: zgoda2')]
#[Groups(['read:' . self::class, 'write'])]
#[ORM\Column(type: Types::TEXT, nullable: true)]
private ?string $shopRules2 = 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 getShopRules1(): ?string
{
return $this->shopRules1;
}
public function setShopRules1(?string $shopRules1): static
{
$this->shopRules1 = $shopRules1;
return $this;
}
public function getShopRules2(): ?string
{
return $this->shopRules2;
}
public function setShopRules2(?string $shopRules2): static
{
$this->shopRules2 = $shopRules2;
return $this;
}
}