Skip to content

Commit

Permalink
Allow to get amount and currency
Browse files Browse the repository at this point in the history
  • Loading branch information
loevgaard committed Jan 29, 2025
1 parent cbb6a9a commit ff7b03f
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/Feed/Model/Google/Shopping/Price.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,16 @@ public function __toString(): string
return round($this->amount / 100, 2) . ' ' . $this->currency;
}

public function getAmount(): int
{
return $this->amount;
}

public function getCurrency(): string
{
return $this->currency;
}

public function jsonSerialize(): string
{
return (string) $this;
Expand Down

0 comments on commit ff7b03f

Please sign in to comment.