setValue($currentRow, $currentCol, $diagonalValues[$currentRow]); } else { $this->setValue($currentRow, $currentCol, 0); } } } } }