Tag: oop
Interpreter Pattern
A grammar represented as a class hierarchy — used for search query parsers, expression evaluators, and rule engines.
3mo ago
quality advanced
Inappropriate Intimacy
Two classes that access each other's private fields and internals too freely, creating tight bidirectional coupling.
3mo ago
quality intermediate
Interface Segregation Principle
Clients should not be forced to depend on interfaces they do not use — prefer many small, focused interfaces over one large one.
3mo ago
quality intermediate
Interfaces define pure capability contracts with no state; abstract classes add shared implementation. Use interfaces for type contracts, abstract for shared behaviour.
3mo ago
php intermediate
Interfaces
PHP 5.0+
2
Contracts that define a set of method signatures a class must implement, enabling polymorphism without inheritance.
3mo ago
php intermediate
Iterator Pattern
PHP 5.0+
Provides a uniform way to traverse a collection without exposing its internal structure — the foundation of PHP's foreach and SPL iterators.
3mo ago
quality intermediate
Iterators & IteratorAggregate
PHP 5.0+
PHP interfaces that allow custom objects to be used in foreach loops, enabling lazy and memory-efficient iteration over any data source.
3mo ago
php intermediate
Immutability
PHP 8.1+
1
Objects whose state cannot change after construction — immutable objects are inherently thread-safe, predictable, and easy to reason about.
3mo ago
quality intermediate