src/Reflection/ReflectionObject.php
public function addProperty(
        string $methodName,
        int $visibility = CoreReflectionProperty::IS_PUBLIC,
        bool $static = false
    ) : void {
        $this->reflectionClass->addProperty($methodName, $visibility, $static);
    }
public function addProperty(
        string $methodName,
        int $visibility = CoreReflectionProperty::IS_PUBLIC,
        bool $static = false
    ) : void {
        $this->reflectionClass->addProperty($methodName, $visibility, $static);
    }
{@inheritdoc}