/** * @param Instance $instance * @return array */ public function encodeItem($instance) { return array('name' => $instance->getName(), 'dsn' => $instance->getDsn(), 'root' => $instance->getRoot(), 'url' => $instance->getUrl()); }