Commit 91ffb084 authored by doctrine's avatar doctrine

[amadeus] added getFirst() method

parent f6fa905e
......@@ -153,6 +153,12 @@ class Doctrine_Collection extends Doctrine_Access implements Countable, Iterator
public function addData(array $data) {
$this->data[] = $data;
}
/**
* @return mixed
*/
public function getFirst() {
return $this->data[0];
}
/**
* @return mixed
*/
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment