/** * @param \ReflectionProperty $accessedProperty * @param string $nameSuffix */ public function __construct(\ReflectionProperty $accessedProperty, $nameSuffix) { $this->accessedProperty = $accessedProperty; $originalName = $accessedProperty->getName(); $name = UniqueIdentifierGenerator::getIdentifier($originalName . $nameSuffix); parent::__construct(Class_::MODIFIER_PRIVATE, [new PropertyProperty($name)]); }