Clients should not be forced to depend on interfaces they do not use. It is better to have many small, specific interfaces than one large, general-purpose interface.
To write great object-oriented code, you need to understand the four foundational concepts. 1. Encapsulation object-oriented principles in php laracasts download
This example demonstrates encapsulation (the BankAccount class), inheritance (the SavingsAccount class), and polymorphism (the SavingsAccount object can be treated as a BankAccount object). Clients should not be forced to depend on
Modern PHP development requires moving beyond basics into more sophisticated organizational strategies: Object Composition: specific interfaces than one large