/** * @throws \InvalidArgumentException * * @return Money */ public function asMoney() : Money { return Money::fromSplit((int) $this->units, (int) $this->subunits); }