| | |
| | | <?php |
| | | namespace JVBase\managers\SEO\render\Traits\_Properties; |
| | | |
| | | use JVBase\base\SchemaHelper; |
| | | use JVBase\managers\SEO\render\Thing\Intangible\ContactPoint\PostalAddress; |
| | | |
| | | if (!defined('ABSPATH')) { |
| | |
| | | public function setAddress(PostalAddress|array|string $address):void |
| | | { |
| | | if (is_array($address)){ |
| | | $address = PostalAddress::fromArray($address); |
| | | if (!array_key_exists('type', $address)) { |
| | | $address['type'] = 'JVBase\managers\SEO\render\Thing\Intangible\ContactPoint\PostalAddress'; |
| | | } |
| | | $address = SchemaHelper::classFromConfig($address); |
| | | } |
| | | $this->address = $address; |
| | | } |
| | |
| | | 'addressLocality' => [ |
| | | 'type' => 'text', |
| | | 'label' => 'Address Locality', |
| | | 'hint' => 'The locality in which the street address is, and which is in the region. For example, "Park Allen".' |
| | | 'hint' => 'The locality in which the street address is, and which is in the region. For example, "Edmonton".' |
| | | ], |
| | | 'addressRegion' => [ |
| | | 'type' => 'text', |