Skip to content

Glossary: PHP Basics

constructor property promotion

Also written: promotion, promoted properties

Writing `public` (or `private`) before a constructor parameter so it also becomes a property, filled from the argument, with no extra code needed.

Where the book teaches it

Related terms

constructorproperty