Are there best practices for accessing object data in PHP without following getter conventions, especially in older or less documented plugins like isotope in Contao 3?
When dealing with older or less documented plugins like Isotope in Contao 3 that do not follow getter conventions, it can be challenging to access object data. One way to work around this is to directly access the object's properties using array notation. This can be done by treating the object as an array and accessing its properties directly.
// Accessing object data without following getter conventions
$object = new SomeObject();
// Directly accessing object properties using array notation
$propertyValue = $object->property_name;