/** * @param AbstractAddress|null $address * @return string * @deprecated All new code should use renderArray based on Metadata service */ public function getFormat(AbstractAddress $address = null) { $countryFormat = $address === null ? false : $address->getCountryModel()->getFormat($this->getType()->getCode()); $format = $countryFormat ? $countryFormat->getFormat() : $this->getType()->getDefaultFormat(); return $format; }