1: <?php
2:
3: namespace Csim\Model;
4:
5: /**
6: * Identifies an individual cell in the cache.
7: */
8: class CacheCell {
9:
10: private $setNo;
11: private $index;
12: private $offset;
13:
14: /**
15: * Constructs a new instance representing the specified location.
16: *
17: * @param type $setNo The set number (starting from zero) of the newly created location.
18: * @param type $index The index in the set (starting from zero) of the
19: * newly created location.
20: * @param type $offset The offset of the block (starting from zero) of the
21: * newly created location.
22: */
23: public function __construct($setNo, $index, $offset) {
24: $this->setNo = $setNo;
25: $this->index = $index;
26: $this->offset = $offset;
27: }
28:
29: /**
30: * @return int The set number (starting from zero) of this location.
31: */
32: public function getSetNo() {
33: return $this->setNo;
34: }
35:
36: /**
37: * @return int The index (starting from zero) of this location.
38: */
39: public function getIndex() {
40: return $this->index;
41: }
42:
43: /**
44: * @return int The offset (starting from zero) of this location.
45: */
46: public function getOffset() {
47: return $this->offset;
48: }
49:
50: }
51: