1, 'name' => 'Item name', 'price' => 10.00, 'currency' => 'USD', 'weight' => 0, ]; /** * Get the identifier of the Buyable item. * * @return int|string */ public function getBuyableIdentifier() { return $this->id; } /** * Get the description or title of the Buyable item. * * @return string */ public function getBuyableDescription() : ?string { return $this->name; } /** * Get the price of the Buyable item. */ public function getBuyablePrice(): Money { return new Money($this->price, $this->currency); } /** * Get the price of the Buyable item. */ public function getBuyableWeight(): int { return $this->weight; } }