SlugAwareInterface.php 576 B

1234567891011121314151617181920212223242526272829303132
  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\Resource\Model;
  11. /**
  12. * @author Joseph Bielawski <stloyd@gmail.com>
  13. */
  14. interface SlugAwareInterface
  15. {
  16. /**
  17. * Get permalink/slug.
  18. *
  19. * @return string
  20. */
  21. public function getSlug();
  22. /**
  23. * Set permalink/slug.
  24. *
  25. * @param string $slug
  26. */
  27. public function setSlug($slug = null);
  28. }