public function getArrayDefaults() { if (null !== $this->defaults) { $result = array(); foreach ($this->defaults as $default) { $result[$default->getKey()] = $default->getValue(); } return $result; } }