AttributeInterface.php 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  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\Resource\Model\TimestampableInterface;
  12. /**
  13. * Attribute interface.
  14. *
  15. * @author Paweł Jędrzejewski <pawel@sylius.org>
  16. * @author Gonzalo Vilaseca <gvilaseca@reiss.co.uk>
  17. */
  18. interface AttributeInterface extends TimestampableInterface, AttributeTranslationInterface
  19. {
  20. /**
  21. * Get internal name.
  22. *
  23. * @return string
  24. */
  25. public function getName();
  26. /**
  27. * Set internal name.
  28. *
  29. * @param string $name
  30. */
  31. public function setName($name);
  32. /**
  33. * The type of the attribute.
  34. *
  35. * @return string
  36. */
  37. public function getType();
  38. /**
  39. * Set type of the attribute.
  40. *
  41. * @param string $type
  42. */
  43. public function setType($type);
  44. /**
  45. * Get attribute configuration.
  46. *
  47. * @return array
  48. */
  49. public function getConfiguration();
  50. /**
  51. * Set attribute configuration.
  52. *
  53. * @param array $configuration
  54. */
  55. public function setConfiguration(array $configuration);
  56. }