public function mapValues(array &$data) { if ($this->hasFieldType()) { return $this->getFieldType()->mapValues($data); } else { $data[$this->getId()] = $this->getValue(); } }