public function getFirst()
    {
        $varReturn = null;
        if (count($this->collection) > 0) {
            $varReturn = $this->collection[0];
        }

        return $varReturn;
    }
public function getFirst()
    {
        $varReturn = null;
        if (count($this->collection) > 0) {
            $varReturn = $this->collection[0];
        }

        return $varReturn;
    }
public function getFirst ( ) { $ varReturn = null ; if ( count ( $ this -> collection ) > 0 ) { $ varReturn = $ this -> collection [ 0 ] ; } return $ varReturn ; }
Get first element in collection
@return mixed Returns first element in collection, null if collection is empty
Get first element in collection