/** * Get a list of all properties. * * @param boolean genericOnly If set, consider only generic properties (via get/set methods); default is <code>true</code>. * @return array List of custom properties set on this object. */ public function getPropertyNames($genericOnly = true) { if ($genericOnly) { return array_keys($this->properties); } return array_merge(array_keys($this->properties), array_keys(Beans::getPropertyMap($this))); }