public function getProduct($num = null){
        if (!isset($this->productList)){
            return false;
        }
        if (is_numeric($num)){
            return $this->productList[$num];
        } else {
            return $this->productList;
        }
    }
public function getProduct($num = null){
        if (!isset($this->productList)){
            return false;
        }
        if (is_numeric($num)){
            return $this->productList[$num];
        } else {
            return $this->productList;
        }
    }
public function getProduct ( $ num = null ) { if ( ! isset ( $ this -> productList ) ) { return false ; } if ( is_numeric ( $ num ) ) { return $ this -> productList [ $ num ] ; } else { return $ this -> productList ; } }
Returns product specified or array of products.

See the <i>AmazonProduct</i> class for more information on the returned objects.
@param int $num [optional] <p>List index to retrieve the value from. Defaults to 0.</p>
@return AmazonProduct|array Product (or list of Products)
Returns product specified or array of products .