Tag: oop
Extract Class Refactoring
Extract Class splits a large class into two — moving a cohesive subset of fields and methods into a new class that the original delegates to.
2mo ago
quality intermediate
ES6 Class Syntax
ES2015
ES6 classes are syntactic sugar over prototypal inheritance — the keywords mirror PHP but the underlying mechanism is different.
3mo ago
javascript intermediate
Enum Methods, Interfaces & Constants (PHP 8.1)
PHP 8.1+
PHP 8.1 enums support methods, interface implementation, constants, and static factory methods — making them full-featured types, not just value lists.
3mo ago
php intermediate
Exception Hierarchy & Custom Exceptions
PHP 5.0+
Defining domain-specific exception classes that extend SPL exceptions provides semantic meaning and enables granular catch blocks.
3mo ago
php intermediate