BaseGroup.php 608 B

123456789101112131415161718192021222324252627282930
  1. <?php
  2. /*
  3. * This file is part of the Sonata Project package.
  4. *
  5. * (c) Thomas Rabaix <thomas.rabaix@sonata-project.org>
  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 Sonata\UserBundle\Document;
  11. use FOS\UserBundle\Document\Group as AbstractedGroup;
  12. /**
  13. * Represents a Base Group Document.
  14. */
  15. class BaseGroup extends AbstractedGroup
  16. {
  17. /**
  18. * Returns a string representation.
  19. *
  20. * @return string
  21. */
  22. public function __toString()
  23. {
  24. return $this->getName() ?: '';
  25. }
  26. }