addProperty() public method

Visibility defaults to \ReflectionProperty::IS_PUBLIC, or can be ::IS_PROTECTED or ::IS_PRIVATE.
public addProperty ( string $propertyName, integer $visibility = ReflectionProperty::IS_PUBLIC, boolean $static = false )
$propertyName string
$visibility integer
$static boolean
 /**
  * {@inheritdoc}
  */
 public function addProperty($methodName, $visibility = 'public', $static = false)
 {
     return $this->reflectionClass->addProperty($methodName, $visibility, $static);
 }