/** * Returns an array that can be used to describe the internal state of this * object. * * @return array */ public function __debugInfo() { $parent = ['Parent Properties' => parent::__debugInfo()]; $properties = []; foreach ($this->properties as $property) { $properties[$property] = $this->{$property}; } return $properties + $parent; }