Go\Proxy\ClassProxy::setProperty PHP Method

setProperty() public method

Creates a property
public setProperty ( integer $propFlags, string $propName, null | string $defaultText = null ) : static
$propFlags integer See ReflectionProperty modifiers
$propName string Name of the property
$defaultText null | string Default value, should be string text!
return static
    public function setProperty($propFlags, $propName, $defaultText = null)
    {
        $this->propertiesCode[$propName] = "/**\n * Property was created automatically, do not change it manually\n */\n" . join(' ', Reflection::getModifierNames($propFlags)) . ' $' . $propName . (is_string($defaultText) ? " = {$defaultText}" : '') . ";\n";
        return $this;
    }