<?php
/*
* This file is part of the Sylius package.
*
* (c) Paweł Jędrzejewski
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
declare(strict_types=1);
namespace Sylius\Component\Shipping\Model;
use Sylius\Component\Resource\Model\AbstractTranslation;
class ShippingMethodTranslation extends AbstractTranslation implements ShippingMethodTranslationInterface, \Stringable
{
/** @var mixed */
protected $id;
/**
* @var string|null
*/
protected $name;
/**
* @var string|null
*/
protected $description;
public function __toString(): string
{
return (string) $this->getName();
}
public function getId()
{
return $this->id;
}
public function getName(): ?string
{
return $this->name;
}
public function setName(?string $name): void
{
$this->name = $name;
}
public function getDescription(): ?string
{
return $this->description;
}
public function setDescription(?string $description): void
{
$this->description = $description;
}
}