Implement symfony/property-access like property accessor