Use constructor property promotion to define class properties directly on the constructor

Use constructor property promotion to define class properties directly on the constructor

PHP reminder: you can define your class properties directly on the constructor. ✅

We're writing a book, you can get it for free here.