Conveying Insights by Passing Objects as Messengers We’ve looked at passing numerous different data types as arguments to methods, but we haven’t looked at passing objects as arguments to methods. We’ll type hint with the inherited class, which is an overview of polymorphism in PHP. We’ll also pass the object as an argument to the constructor. The constructor will then set the property inside the class. This is called dependency injection. We’ll explore both of these topics in detail later, but this is a good overview. Let’s continue on from where we left off in the previous article, with our