/** * debugInfo PHP 5.6+ magic method * * This is used when you print_r() an object instance. * * @return array * */ public function __debugInfo() { $info = parent::__debugInfo(); $info['settings'] = $this->settings; if ($this->prevTable) { $info['prevTable'] = $this->prevTable; } if ($this->prevFieldtype) { $info['prevFieldtype'] = (string) $this->prevFieldtype; } if (!empty($this->trackGets)) { $info['trackGets'] = $this->trackGets; } if ($this->useRoles) { $info['viewRoles'] = $this->viewRoles; $info['editRoles'] = $this->editRoles; } return $info; }