Tag: oop
Readonly Classes (PHP 8.2)
PHP 8.2+
Marking an entire class readonly automatically makes all its declared properties readonly, simplifying immutable value object creation.
3mo ago
php intermediate
Readonly Classes (PHP 8.2)
PHP 8.2+
Marking an entire class readonly makes all its properties implicitly readonly — ideal for immutable value objects and DTOs with minimal boilerplate.
3mo ago
php advanced
Readonly Properties (PHP 8.1)
PHP 8.1+
Properties declared with readonly can only be initialised once and then never modified, enforcing immutability at the language level.
3mo ago
php intermediate
Reflection API
PHP 5.0+
PHP's built-in introspection system for examining classes, methods, properties, and parameters at runtime.
3mo ago
php advanced
Refused Bequest
A subclass that inherits methods it doesn't need or want, signalling a misused inheritance relationship.
3mo ago
quality intermediate