Benefits over using object method over property from $product?
You should always use methods over accessing properties directly, when they’re available. Methods are the ‘API’ for the object, and by using them you don’t need to worry about the internal structure of the object’s data, and it theoretically allows the object to be designed so that its internal structure can change without affecting code … Read more