src/Service/Article/ArticleService.php
public function getArticle($articleNumber)
    {
        $requestData = new Get\RequestData();
        $requestData->setArticleNumber($articleNumber);

        $request = new Get\Request($requestData);
        $request->setLimit(1);

        /** @var Get\ApiResponse $apiResponse */
        $apiResponse = $this->sendRequest($request, Get\ApiResponse::class);
        $articles = $apiResponse->getResponse()->getArticles();

        return isset($articles[0]) ? $articles[0] : null;
    }
public function getArticle($articleNumber)
    {
        $requestData = new Get\RequestData();
        $requestData->setArticleNumber($articleNumber);

        $request = new Get\Request($requestData);
        $request->setLimit(1);

        /** @var Get\ApiResponse $apiResponse */
        $apiResponse = $this->sendRequest($request, Get\ApiResponse::class);
        $articles = $apiResponse->getResponse()->getArticles();

        return isset($articles[0]) ? $articles[0] : null;
    }
public function getArticle ( $ articleNumber ) { $ requestData = new Get \ RequestData ( ) ; $ requestData -> setArticleNumber ( $ articleNumber ) ; $ request = new Get \ Request ( $ requestData ) ; $ request -> setLimit ( 1 ) ; /** @var Get\ApiResponse $apiResponse */ $ apiResponse = $ this -> sendRequest ( $ request , Get \ ApiResponse :: class ) ; $ articles = $ apiResponse -> getResponse ( ) -> getArticles ( ) ; return isset ( $ articles [ 0 ] ) ? $ articles [ 0 ] : null ; }
Get one article by article number.

@param string $articleNumber Article number of the article to get.
@return Article|null
Get one article by article number .