Component/BasketComponent.php
protected function getCurrentArticle()
    {
        $currentItem = oxNew(\OxidEsales\PayPalModule\Model\ArticleToExpressCheckoutCurrentItem::class);
        $currentArticleId = $this->getRequest()->getPostParameter('aid');
        $products = $this->_getItems();
        $productInfo = $products[$currentArticleId];
        $currentItem->setArticleId($currentArticleId);
        $currentItem->setSelectList($productInfo['sel']);
        $currentItem->setPersistParam($productInfo['persparam']);
        $currentItem->setArticleAmount($productInfo['am']);

        return $currentItem;
    }
protected function getCurrentArticle()
    {
        $currentItem = oxNew(\OxidEsales\PayPalModule\Model\ArticleToExpressCheckoutCurrentItem::class);
        $currentArticleId = $this->getRequest()->getPostParameter('aid');
        $products = $this->_getItems();
        $productInfo = $products[$currentArticleId];
        $currentItem->setArticleId($currentArticleId);
        $currentItem->setSelectList($productInfo['sel']);
        $currentItem->setPersistParam($productInfo['persparam']);
        $currentItem->setArticleAmount($productInfo['am']);

        return $currentItem;
    }
protected function getCurrentArticle ( ) { $ currentItem = oxNew ( \ OxidEsales \ PayPalModule \ Model \ ArticleToExpressCheckoutCurrentItem :: class ) ; $ currentArticleId = $ this -> getRequest ( ) -> getPostParameter ( 'aid' ) ; $ products = $ this -> _getItems ( ) ; $ productInfo = $ products [ $ currentArticleId ] ; $ currentItem -> setArticleId ( $ currentArticleId ) ; $ currentItem -> setSelectList ( $ productInfo [ 'sel' ] ) ; $ currentItem -> setPersistParam ( $ productInfo [ 'persparam' ] ) ; $ currentItem -> setArticleAmount ( $ productInfo [ 'am' ] ) ; return $ currentItem ; }
Method sets params for article and returns it's object.

@return \OxidEsales\PayPalModule\Model\ArticleToExpressCheckoutCurrentItem
Method sets params for article and returns it s object .