getOption('interfaces')) { return; } $interfaces = $this->prepareInterfaces(get_declared_interfaces()); if (empty($interfaces)) { return; } return array( 'Interfaces' => $interfaces, ); } /** * Prepare formatted interface array. * * @param array $interfaces * * @return array */ protected function prepareInterfaces(array $interfaces) { natcasesort($interfaces); // My kingdom for a generator. $ret = array(); foreach ($interfaces as $name) { if ($this->showItem($name)) { $ret[$name] = array( 'name' => $name, 'style' => self::IS_CLASS, 'value' => $this->presentSignature($name), ); } } return $ret; } }