Scalr\Stats\CostAnalytics\Prices::getDetails PHP Method

getDetails() public method

Gets the collection of the prices for the specified price_id
public getDetails ( Scalr\Stats\CostAnalytics\Entity\PriceHistoryEntity | string $price ) : ArrayCollection
$price Scalr\Stats\CostAnalytics\Entity\PriceHistoryEntity | string The PriceHistoryEntity or identifier of the price. Identifier must be provided as UUID without hyphens.
return Scalr\Model\Collections\ArrayCollection Returns all prices which are associated with this price history ID
    public function getDetails($price)
    {
        if ($price instanceof PriceHistoryEntity) {
            if (!$price->priceId) {
                throw new \InvalidArgumentException("Identifier of the price must be set.");
            }
            $priceId = $price->priceId;
        } else {
            $priceId = (string) $price;
        }
        return PriceEntity::result(PriceEntity::RESULT_ENTITY_COLLECTION)->findByPriceId($priceId);
    }