FieldVote.php 840 B

12345678910111213141516171819202122232425262728293031323334353637383940
  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\Voter;
  11. /**
  12. * This class is a lightweight wrapper around field vote requests which does
  13. * not violate any interface contracts.
  14. *
  15. * @author Johannes M. Schmitt <schmittjoh@gmail.com>
  16. */
  17. class FieldVote
  18. {
  19. private $domainObject;
  20. private $field;
  21. public function __construct($domainObject, $field)
  22. {
  23. $this->domainObject = $domainObject;
  24. $this->field = $field;
  25. }
  26. public function getDomainObject()
  27. {
  28. return $this->domainObject;
  29. }
  30. public function getField()
  31. {
  32. return $this->field;
  33. }
  34. }