| | |
| | | <?php |
| | | namespace JVBase\managers\SEO\render\Traits\_Properties; |
| | | |
| | | use JVBase\base\SchemaHelper; |
| | | use JVBase\managers\SEO\render\Thing\Intangible\StructuredValue\GeoCoordinates; |
| | | use JVBase\managers\SEO\render\Thing\Intangible\StructuredValue\GeoShape; |
| | | |
| | |
| | | { |
| | | return $this->geo??null; |
| | | } |
| | | public function setGeo(GeoCoordinates|GeoShape $geo):void |
| | | |
| | | public function setGeo(GeoCoordinates|GeoShape|array $geo):void |
| | | { |
| | | if (is_array($geo)) { |
| | | if(!array_key_exists('type', $geo)) { |
| | | $geo['type'] = 'JVBase\managers\SEO\render\Thing\Intangible\StructuredValue\GeoCoordinates'; |
| | | } |
| | | $geo = SchemaHelper::classFromConfig($geo); |
| | | } |
| | | $this->geo = $geo; |
| | | } |
| | | public function getGeoFieldConfig():array |