Returns the property name of the current node.
If the metadata of the current node does not implement {@link PropertyMetadataInterface} or if no metadata is available for the current node, this method returns null.
string|null The property name or null, if no property name could be found.
Overrides ExecutionContextInterface::getPropertyName
public function getPropertyName() {
if ($this->metadata instanceof PropertyMetadataInterface) {
return $this->metadata
->getPropertyName();
}
return null;
}