for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Chemaclass\StockTicker\Domain\WriteModel;
final class Currency extends AbstractWriteModel
{
public const CURRENCY = 'currency';
public const SYMBOL = 'symbol';
protected const PROPERTY_NAME_MAP = [
'currency' => self::CURRENCY,
'Currency' => self::CURRENCY,
'symbol' => self::SYMBOL,
'Symbol' => self::SYMBOL,
];
private const METADATA = [
self::CURRENCY => [
'type' => self::TYPE_STRING,
],
self::SYMBOL => [
protected ?string $currency = null;
protected ?string $symbol = null;
public function getCurrency(): ?string
return $this->currency;
}
public function setCurrency(?string $currency): self
$this->currency = $currency;
return $this;
public function getSymbol(): ?string
return $this->symbol;
public function setSymbol(?string $symbol): self
$this->symbol = $symbol;
protected function metadata(): array
return self::METADATA;