コード例 #1
0
ファイル: Address.php プロジェクト: gpupo/stelo-sdk
 public function getSchema()
 {
     return array_merge(['alias' => 'string'], parent::getSchema());
 }
コード例 #2
0
ファイル: DefaultRenderer.php プロジェクト: opexsw/magento2
 /**
  * @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;
 }