title: Cell getCoordinate returns the value for the last cell created, not the cell object in the variable
body: <p>I am making a class which can be loaded up with style information and then passed an array of cells to apply the styles to. A problem I have encountered is that when you get a cell object via <code>$phpExcel-&gt;getCell('A1');</code> and then get another, the original value loses information (sort of).</p>
  
  <p>The PHPExcel <code>getCoordinate</code>, <code>getRow</code>, and <code>getColumn</code> functions get their information from the currently active cell, the cell reference, row, or column indexes do not seem to be stored on the actual cell object. This presents a problem that can be seen with the code below. I grab and store the cell objects for three cells, A1, B2, and C3. I print the information for these cells as I grab them and then do a final dump at the end. The coordinates, rows, or columns of a cell return those of the last cell created. The final lines of the code set the value on the cells. These values are set correctly on each cell when the document is exported.</p>
  
  <pre class="lang-php prettyprint-override"><code>print "Var\tRef\tCol\tRow\n";
  
  $a1 = $sheet-&gt;getCell('A1')-&gt;setValue('a1');
  print "A1\t" . $a1-&gt;getCoordinate() . "\t" . $a1-&gt;getColumn() . "\t" . $a1-&gt;getRow() . "\n";
  
  $b2 = $sheet-&gt;getCell('B2')-&gt;setValue('b2');
  print "B2\t" . $b2-&gt;getCoordinate() . "\t" . $b2-&gt;getColumn() . "\t" . $b2-&gt;getRow() . "\n";
  
  $c3 = $sheet-&gt;getCell('C3')-&gt;setValue('c3');
  print "C3\t" . $c3-&gt;getCoordinate() . "\t" . $c3-&gt;getColumn() . "\t" . $c3-&gt;getRow() . "\n";
  
  print "----------------------------\n";
  
  print "A1\t" . $a1-&gt;getCoordinate() . "\t" . $a1-&gt;getColumn() . "\t" . $a1-&gt;getRow() . "\n";
  print "B2\t" . $b2-&gt;getCoordinate() . "\t" . $b2-&gt;getColumn() . "\t" . $b2-&gt;getRow() . "\n";
  print "C3\t" . $c3-&gt;getCoordinate() . "\t" . $c3-&gt;getColumn() . "\t" . $c3-&gt;getRow() . "\n";
  
  $a1-&gt;setValue('test');
  $b2-&gt;setValue('test');
  $c3-&gt;setValue('test');
  </code></pre>
  
  <p>The print output for the above code is:</p>
  
  <pre><code>Var Ref Col Row
  A1  A1  A   1
  B2  B2  B   2
  C3  C3  C   3
  ----------------------------
  A1  C3  C   3
  B2  C3  C   3
  C3  C3  C   3
  </code></pre>
  
  <p>The CSV output for the above code is:</p>
  
  <pre><code>"test","",""
  "","test",""
  "","","test"
  </code></pre>
  
  <p>How can I get the cell reference for a particular cell object without storing the cell in an associative array when it is first returned from the <code>getCell</code> function?</p>