source/Application/Controller/BasketController.php
public function getFirstBasketProduct()
    {
        if ($this->_oFirstBasketProduct === null) {
            $this->_oFirstBasketProduct = false;

            $aBasketArticles = $this->getBasketArticles();
            if (is_array($aBasketArticles) && $oProduct = reset($aBasketArticles)) {
                $this->_oFirstBasketProduct = $oProduct;
            }
        }

        return $this->_oFirstBasketProduct;
    }
public function getFirstBasketProduct()
    {
        if ($this->_oFirstBasketProduct === null) {
            $this->_oFirstBasketProduct = false;

            $aBasketArticles = $this->getBasketArticles();
            if (is_array($aBasketArticles) && $oProduct = reset($aBasketArticles)) {
                $this->_oFirstBasketProduct = $oProduct;
            }
        }

        return $this->_oFirstBasketProduct;
    }
public function getFirstBasketProduct ( ) { if ( $ this -> _oFirstBasketProduct === null ) { $ this -> _oFirstBasketProduct = false ; $ aBasketArticles = $ this -> getBasketArticles ( ) ; if ( is_array ( $ aBasketArticles ) && $ oProduct = reset ( $ aBasketArticles ) ) { $ this -> _oFirstBasketProduct = $ oProduct ; } } return $ this -> _oFirstBasketProduct ; }
return the basket articles

@return object | bool
return the basket articles