vendor/sylius/customer/Model/CustomerGroup.php line 16

  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\Customer\Model;
  12. class CustomerGroup implements CustomerGroupInterface\Stringable
  13. {
  14.     /** @var mixed */
  15.     protected $id;
  16.     /** @var string|null */
  17.     protected $code;
  18.     /** @var string|null */
  19.     protected $name;
  20.     public function __toString(): string
  21.     {
  22.         return (string) $this->getName();
  23.     }
  24.     public function getId()
  25.     {
  26.         return $this->id;
  27.     }
  28.     public function getCode(): ?string
  29.     {
  30.         return $this->code;
  31.     }
  32.     public function setCode(?string $code): void
  33.     {
  34.         $this->code $code;
  35.     }
  36.     public function getName(): ?string
  37.     {
  38.         return $this->name;
  39.     }
  40.     public function setName(?string $name): void
  41.     {
  42.         $this->name $name;
  43.     }
  44. }