1: <?php
2:
3: namespace ProgrammingAreHard\Arbiter\Domain;
4:
5: use Symfony\Component\Security\Acl\Model\EntryInterface;
6:
7: class IndexedAce
8: {
9: /**
10: * The ACE's index.
11: *
12: * @var int
13: */
14: private $index;
15:
16: /**
17: * The ACE.
18: *
19: * @var \Symfony\Component\Security\Acl\Model\EntryInterface
20: */
21: private $ace;
22:
23: /**
24: * Constructor.
25: *
26: * @param int $index
27: * @param EntryInterface $ace
28: */
29: public function __construct($index, EntryInterface $ace)
30: {
31: $this->index = $index;
32: $this->ace = $ace;
33: }
34:
35: /**
36: * Get the ACE's index.
37: *
38: * @return int
39: */
40: public function getIndex()
41: {
42: return $this->index;
43: }
44:
45: /**
46: * Get the ACE.
47: *
48: * @return EntryInterface
49: */
50: public function getAce()
51: {
52: return $this->ace;
53: }
54: }