Mark V
1: <?php
2: namespace MOC\V\Component\Document\Component\Bridge\Repository\PhpExcel;
3:
4: /**
5: * Class Cell
6: *
7: * @package MOC\V\Component\Document\Component\Bridge\Repository\PhpExcel
8: */
9: class Cell
10: {
11:
12: /** @var int $Column */
13: private $Column;
14: /** @var int $Row */
15: private $Row;
16:
17: /**
18: * @param int $Column
19: * @param int $Row
20: */
21: public function __construct($Column, $Row)
22: {
23:
24: $this->Column = $Column;
25: $this->Row = $Row;
26: }
27:
28: /**
29: * @return string
30: */
31: public function getCellName()
32: {
33:
34: return $this->getColumnName().$this->getRow();
35: }
36:
37: /**
38: * @return string
39: */
40: public function getColumnName()
41: {
42:
43: return \PHPExcel_Cell::stringFromColumnIndex($this->getColumn());
44: }
45:
46: /**
47: * @return int
48: */
49: public function getColumn()
50: {
51:
52: return $this->Column;
53: }
54:
55: /**
56: * @return int
57: */
58: public function getRow()
59: {
60:
61: return $this->Row;
62: }
63: }
64: