concept object - orient programming in category php

This is an excerpt from Manning's book PHP in Action: Objects, Design, Agility.
The long-term benefit of medical treatment is a long way from the subject matter of this book, but the long-term perspective in software development is another matter. Modern software engineering may not attempt to make software last forever, but long-term productivity is one of the key issues in the development of new technologies, principles, and methodologies. This is the reason why object-oriented programming is the de facto standard today: it is a way of making software easier to maintain and develop beyond the first version. Other buzzwords such as design patterns and agile development are also related to this.
When object-oriented programming started to take over the world, it was generally considered a way to model the real world. Since the real world contains objects and actions, object-oriented languages seemed appropriate. And it seemed natural to model relationships between concepts as relationships between classes. Class inheritance is supposed to model an “is-a” relationship, so since a news article is a document, the NewsArticle class should inherit from the Document class as shown in the UML class diagram in figure 1.2.