Adapter/PlentymarketsAdapter/ReadApi/Item.php
public function findOne($productId)
    {
        $result = $this->client->request('GET', 'items/' . $productId, [
            'lang' => $this->languageHelper->getLanguagesQueryString(),
            'with' => implode(',', self::$includes),
        ]);

        if (empty($result)) {
            return $result;
        }

        $result['variations'] = $this->itemsVariationsApi->findBy([
            'itemId' => $result['id'],
            'plentyId' => implode(',', $this->variationHelper->getMappedPlentyClientIds()),
        ]);

        return $result;
    }
public function findOne($productId)
    {
        $result = $this->client->request('GET', 'items/' . $productId, [
            'lang' => $this->languageHelper->getLanguagesQueryString(),
            'with' => implode(',', self::$includes),
        ]);

        if (empty($result)) {
            return $result;
        }

        $result['variations'] = $this->itemsVariationsApi->findBy([
            'itemId' => $result['id'],
            'plentyId' => implode(',', $this->variationHelper->getMappedPlentyClientIds()),
        ]);

        return $result;
    }
public function findOne ( $ productId ) { $ result = $ this -> client -> request ( 'GET' , 'items/' . $ productId , [ 'lang' => $ this -> languageHelper -> getLanguagesQueryString ( ) , 'with' => implode ( ',' , self :: $ includes ) , ] ) ; if ( empty ( $ result ) ) { return $ result ; } $ result [ 'variations' ] = $ this -> itemsVariationsApi -> findBy ( [ 'itemId' => $ result [ 'id' ] , 'plentyId' => implode ( ',' , $ this -> variationHelper -> getMappedPlentyClientIds ( ) ) , ] ) ; return $ result ; }
@param int $productId

@return array
@param int $productId