34 private $fieldCollection;
36 private $linkCollection =
null;
44 $this->languageId = $languageId;
72 return $this->latitude;
81 $this->latitude = $latitude;
90 return $this->longitude;
99 $this->longitude = $longitude;
108 return $this->languageId;
117 return $this->fieldCollection;
127 $this->fieldCollection = $fieldCollection;
137 return $this->location;
146 $this->location = $location;
161 $field->setValue($value);
165 $this->fieldCollection->addItem(
185 $result[$field->getType()] = $field->getValue();
203 $result = $field->getValue();
229 public static function load(
int $id)
267 return Json::encode(ArrayConverter::convertToArray($this));
277 return ArrayConverter::convertToArray($this);
289 return ArrayConverter::convertFromArray(Json::decode($jsonData));
300 return ArrayConverter::convertFromArray($arrayData);
308 $this->linkCollection = $collection;
316 return $this->linkCollection;
324 $this->linkCollection->clear();
334 public function addLink(
string $entityId,
string $entityType): void
341 if($entityType ===
'')
346 $this->linkCollection->addItem(
358 return $this->linkCollection->count() > 0;
372 string $strategyType = StringConverter::STRATEGY_TYPE_TEMPLATE,
373 string $contentType = StringConverter::CONTENT_TYPE_HTML
376 return StringConverter::convertToString($this, $format, $strategyType, $contentType);
setLatitude(string $latitude)
toString(Format $format, string $strategyType=StringConverter::STRATEGY_TYPE_TEMPLATE, string $contentType=StringConverter::CONTENT_TYPE_HTML)
addLink(string $entityId, string $entityType)
setLinks(AddressLinkCollection $collection)
static fromJson(string $jsonData)
static fromArray(array $arrayData)
setFieldValue(int $type, string $value)
setLongitude(string $longitude)
setLocation(?Location $location)
__construct(string $languageId)
setFieldCollection(FieldCollection $fieldCollection)