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