first commit

This commit is contained in:
2024-11-11 18:46:54 +01:00
commit a630d17338
25634 changed files with 4923715 additions and 0 deletions

View File

@@ -0,0 +1,25 @@
<?php
namespace x13allegro\Api\Model;
use JsonSerializable;
final class Price implements JsonSerializable
{
/** @var float */
public $amount;
/** @var string */
public $currency;
/**
* @return array
*/
public function jsonSerialize()
{
return array(
'amount' => number_format((float)str_replace(',', '.', $this->amount), 2, '.', ''),
'currency' => $this->currency
);
}
}