use private over protected

This commit is contained in:
TomasVotruba 2019-12-04 22:32:43 +01:00
parent c8d082e906
commit 2c22f48321

View File

@ -151,12 +151,14 @@ final class PropertyManipulator
return $this->getProperty($propertyProperty)->isPrivate();
}
protected function getProperty(PropertyProperty $propertyProperty): Property
private function getProperty(PropertyProperty $propertyProperty): Property
{
$property = $propertyProperty->getAttribute(AttributeKey::PARENT_NODE);
if (! $property instanceof Property) {
throw new ShouldNotHappenException('PropertyProperty should always have Property as parent');
}
return $property;
}