NotAllAclsFoundException.php 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. <?php
  2. /*
  3. * This file is part of the Symfony package.
  4. *
  5. * (c) Fabien Potencier <fabien@symfony.com>
  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 Symfony\Component\Security\Acl\Exception;
  11. /**
  12. * This exception is thrown when you have requested ACLs for multiple object
  13. * identities, but the AclProvider implementation failed to find ACLs for all
  14. * identities.
  15. *
  16. * This exception contains the partial result.
  17. *
  18. * @author Johannes M. Schmitt <schmittjoh@gmail.com>
  19. */
  20. class NotAllAclsFoundException extends AclNotFoundException
  21. {
  22. private $partialResult;
  23. /**
  24. * Sets the partial result.
  25. *
  26. * @param \SplObjectStorage $result
  27. */
  28. public function setPartialResult(\SplObjectStorage $result)
  29. {
  30. $this->partialResult = $result;
  31. }
  32. /**
  33. * Returns the partial result.
  34. *
  35. * @return \SplObjectStorage
  36. */
  37. public function getPartialResult()
  38. {
  39. return $this->partialResult;
  40. }
  41. }