/** * @param string * @return string */ public function format($format) { return sprintf($format, $this->truncated(), $this->paddedFractionPart(), $this->currency->getCode(), $this->currency->getName()); }