src/Services/ProductService.php
public function getProductsByConnection($connectionId, ProductsByConnectionCriteria $criteria = null)
    {
        $criteria = $criteria ?: ProductsByConnectionCriteria::create();

        return $this->request(
            new GetProductsByConnectionRequest($connectionId, $criteria)
        );
    }
public function getProductsByConnection($connectionId, ProductsByConnectionCriteria $criteria = null)
    {
        $criteria = $criteria ?: ProductsByConnectionCriteria::create();

        return $this->request(
            new GetProductsByConnectionRequest($connectionId, $criteria)
        );
    }
@param int                          $connectionId
@param ProductsByConnectionCriteria $criteria

@return ProductCollection|Product[]