vendor/setono/sylius-terms-plugin/src/Model/TermsTranslation.php line 9

Open in your IDE?
  1. <?php
  2. declare(strict_types=1);
  3. namespace Setono\SyliusTermsPlugin\Model;
  4. use Sylius\Component\Resource\Model\AbstractTranslation;
  5. class TermsTranslation extends AbstractTranslation implements TermsTranslationInterface
  6. {
  7.     /** @var mixed */
  8.     protected $id;
  9.     /** @var string|null */
  10.     protected $name;
  11.     /** @var string|null */
  12.     protected $slug;
  13.     /** @var string|null */
  14.     protected $explanation;
  15.     /** @var string|null */
  16.     protected $content;
  17.     public function __toString(): string
  18.     {
  19.         return (string) $this->getName();
  20.     }
  21.     /**
  22.      * @return mixed
  23.      */
  24.     public function getId()
  25.     {
  26.         return $this->id;
  27.     }
  28.     public function getName(): ?string
  29.     {
  30.         return $this->name;
  31.     }
  32.     public function setName(?string $name): void
  33.     {
  34.         $this->name $name;
  35.     }
  36.     public function getSlug(): ?string
  37.     {
  38.         return $this->slug;
  39.     }
  40.     public function setSlug(?string $slug): void
  41.     {
  42.         $this->slug $slug;
  43.     }
  44.     public function getExplanation(): ?string
  45.     {
  46.         return $this->explanation;
  47.     }
  48.     public function setExplanation(?string $explanation): void
  49.     {
  50.         $this->explanation $explanation;
  51.     }
  52.     public function getContent(): ?string
  53.     {
  54.         return $this->content;
  55.     }
  56.     public function setContent(?string $content): void
  57.     {
  58.         $this->content $content;
  59.     }
  60. }