/** * Get all debug info for the given Wire object * * @param Wire $obj * @return array * */ public function getDebugInfo(Wire $obj) { $className = $obj->className(); $info = array(); if (method_exists($this, $className)) { $info = array_merge($info, $this->{$className}($obj)); } $changes = $obj->getChanges(); if (count($changes)) { $info['changes'] = $changes; } $hooks = $this->getHooksInfo($obj); if (count($hooks)) { $info['hooks'] = $hooks; } return $info; }