AttributeTranslation.php 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  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. namespace Sylius\Component\Attribute\Model;
  11. use Sylius\Component\Translation\Model\AbstractTranslation;
  12. /**
  13. * Model for object attributes translation.
  14. *
  15. * @author Gonzalo Vilaseca <gvilaseca@reiss.co.uk>
  16. */
  17. class AttributeTranslation extends AbstractTranslation implements AttributeTranslationInterface
  18. {
  19. /**
  20. * Attribute id.
  21. *
  22. * @var mixed
  23. */
  24. protected $id;
  25. /**
  26. * Presentation.
  27. * Displayed to user.
  28. *
  29. * @var string
  30. */
  31. protected $presentation;
  32. /**
  33. * {@inheritdoc}
  34. */
  35. public function getId()
  36. {
  37. return $this->id;
  38. }
  39. /**
  40. * {@inheritdoc}
  41. */
  42. public function getPresentation()
  43. {
  44. return $this->presentation;
  45. }
  46. /**
  47. * {@inheritdoc}
  48. */
  49. public function setPresentation($presentation)
  50. {
  51. $this->presentation = $presentation;
  52. return $this;
  53. }
  54. }