| 1 | <?php |
||
| 7 | class MoneyType implements TypeInterface |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * @var string |
||
| 11 | */ |
||
| 12 | private $name; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * @var bool |
||
| 16 | */ |
||
| 17 | private $isOptional; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * @var string |
||
| 21 | */ |
||
| 22 | private $currency; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * @param string $name |
||
| 26 | * @param string $currency |
||
| 27 | * @param bool $isOptional |
||
| 28 | */ |
||
| 29 | 3 | public function __construct($name, $currency, $isOptional = false) |
|
| 35 | |||
| 36 | /** |
||
| 37 | * {@inheritDoc} |
||
| 38 | */ |
||
| 39 | 2 | public function toArray() |
|
| 48 | } |
||
| 49 |