public function __construct($propertyName, \ReflectionProperty $reflectionProperty, Label $annotation) { $this->propertyName = $propertyName; $this->reflectionProperty = $reflectionProperty; $this->annotation = $annotation; $this->labelName = $annotation->name; }