<?phpnamespace App\Entity\Application;use Doctrine\ORM\Mapping as ORM;use App\Entity\Behaviors\TranslationTrait;use Knp\DoctrineBehaviors\Contract\Entity\TranslationInterface;use JMS\Serializer\Annotation as Serializer;/** * @ORM\Table(name="app_bonus_translation") * @ORM\Entity(repositoryClass="App\Repository\TranslationRepository") * @ORM\HasLifecycleCallbacks() */class BonusTranslation implements TranslationInterface{ use TranslationTrait; /** * @ORM\Column(type="string", length=2) */ protected $locale; /** * @Serializer\Groups({"api","pointsHistory"}) * @Serializer\SerializedName("name") * @ORM\Column(type="string", length=100) */ private $name; /** * @Serializer\Groups({"api","pointsHistory"}) * @Serializer\SerializedName("store") * @ORM\Column(type="string", length=100) */ private $shopName; /** * @Serializer\Groups({"api"}) * @Serializer\SerializedName("url") * @ORM\Column(type="string", length=200, nullable=true) */ private $url; /** * @Serializer\Groups({"api"}) * @Serializer\SerializedName("description") * @ORM\Column(type="text", nullable=true) */ private $description; public function getName(): ?string { return trim($this->name); } public function setName(string $name): self { $this->name = $name; return $this; } public function getShopName(): ?string { return $this->shopName; } public function setShopName(string $shopName): self { $this->shopName = $shopName; return $this; } /** * Get Url * * @return mixed */ public function getUrl() { return $this->url; } /** * Set Url * * @param mixed $url */ public function setUrl( $url ) { $this->url = $url; } /** * Get Description * * @return mixed */ public function getDescription() { return $this->description; } /** * Set Description * * @param mixed $description */ public function setDescription( $description ) { $this->description = $description; }}