public function toArray() { return array('value' => $this->getValue(), 'type' => $this->getType()); }