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 RegularMarketChange extends AbstractWriteModel
{
public const FMT = 'fmt';
public const RAW = 'raw';
protected const PROPERTY_NAME_MAP = [
'raw' => self::RAW,
'Raw' => self::RAW,
'fmt' => self::FMT,
'Fmt' => self::FMT,
];
private const METADATA = [
self::FMT => [
'type' => self::TYPE_STRING,
],
self::RAW => [
'type' => self::TYPE_FLOAT,
protected ?string $fmt = null;
protected ?float $raw = null;
public function getFmt(): ?string
return $this->fmt;
}
public function setFmt(?string $fmt): self
$this->fmt = $fmt;
return $this;
public function getRaw(): ?float
return $this->raw;
public function setRaw(?float $raw): self
$this->raw = $raw;
protected function metadata(): array
return self::METADATA;