/** * @see ItemParameterManipulation::doManipulation * * @since 0.7.2 */ public function doManipulation(&$value, Parameter $parameter, array &$parameters) { $parts = $this->metaDataSeparator === false ? array($value) : explode($this->metaDataSeparator, $value); $value = array_shift($parts); $value = new MapsLocation($value); if ($title = array_shift($parts)) { $value->setTitle($title); } if ($text = array_shift($parts)) { $value->setText($text); } if ($icon = array_shift($parts)) { $value->setIcon($icon); } if ($this->toJSONObj) { $value = $value->getJSONObject(); } }