示例#1
0
 public function testFactoryCellNameCreatesCorrectInstance()
 {
     $this->assertEquals(new Cell(1, 3), Cell::factoryFromName('B4'));
 }
示例#2
0
 /**
  * @param string $cellName
  * @return string
  */
 public function getValue($cellName)
 {
     $Cell = Cell::factoryFromName($cellName);
     return $this->_cells[$Cell->getYCoordinate()][$Cell->getXCoordinate()];
 }
示例#3
0
 private function _getColumnFromCellName($cellName)
 {
     return Cell::factoryFromName($cellName)->getXCoordinate();
 }