setVisibility(self::VISIBILITY_PRIVATE); $this->setStatic(true); $this->setDocBlock( '@var array[][] visibility and default value of defined properties, indexed by property name and class name' ); $this->setDefaultValue($this->getMap($properties)); } /** * @return array> */ private function getMap(Properties $properties): array { $map = []; foreach ($properties->getPrivateProperties() as $property) { $map[$property->getName()][$property->getDeclaringClass()->getName()] = true; } return $map; } }