vendor/sylius/sylius/src/Sylius/Component/Taxonomy/Model/TaxonTranslation.php line 18

Open in your IDE?
  1. <?php
  2. /*
  3.  * This file is part of the Sylius package.
  4.  *
  5.  * (c) Paweł Jędrzejewski
  6.  *
  7.  * For the full copyright and license information, please view the LICENSE
  8.  * file that was distributed with this source code.
  9.  */
  10. declare(strict_types=1);
  11. namespace Sylius\Component\Taxonomy\Model;
  12. use Sylius\Component\Resource\Model\AbstractTranslation;
  13. class TaxonTranslation extends AbstractTranslation implements TaxonTranslationInterface\Stringable
  14. {
  15.     /** @var mixed */
  16.     protected $id;
  17.     /** @var string|null */
  18.     protected $name;
  19.     /** @var string|null */
  20.     protected $slug;
  21.     /** @var string|null */
  22.     protected $description;
  23.     public function __toString(): string
  24.     {
  25.         return (string) $this->getName();
  26.     }
  27.     public function getId()
  28.     {
  29.         return $this->id;
  30.     }
  31.     public function getName(): ?string
  32.     {
  33.         return $this->name;
  34.     }
  35.     public function setName(?string $name): void
  36.     {
  37.         $this->name $name;
  38.     }
  39.     public function getSlug(): ?string
  40.     {
  41.         return $this->slug;
  42.     }
  43.     public function setSlug(?string $slug): void
  44.     {
  45.         $this->slug $slug;
  46.     }
  47.     public function getDescription(): ?string
  48.     {
  49.         return $this->description;
  50.     }
  51.     public function setDescription(?string $description): void
  52.     {
  53.         $this->description $description;
  54.     }
  55. }