protected function buildPropertyMap()
    {
        $map = [];
        $properties = (new ReflectionObject($this))->getProperties(ReflectionProperty::IS_PUBLIC);

        foreach ($properties as $property) {
            $map[$property->getName()] = $property;
        }

        return $map;
    }
protected function buildPropertyMap()
    {
        $map = [];
        $properties = (new ReflectionObject($this))->getProperties(ReflectionProperty::IS_PUBLIC);

        foreach ($properties as $property) {
            $map[$property->getName()] = $property;
        }

        return $map;
    }
protected function buildPropertyMap ( ) { $ map = [ ] ; $ properties = ( new ReflectionObject ( $ this ) ) -> getProperties ( ReflectionProperty :: IS_PUBLIC ) ; foreach ( $ properties as $ property ) { $ map [ $ property -> getName ( ) ] = $ property ; } return $ map ; }
Returns a lookup array of all public properties as keys.

@return array
Returns a lookup array of all public properties as keys .