T
T
thorii2016-08-21 17:01:39
PHP
thorii, 2016-08-21 17:01:39

What are the ways to implement "php chain inheritance"?

Let's say there is a Base class that implements __set __get and stores a single $registry property for storing data.
There are two more classes Controller and Entity
We need an inheritance scheme Base > Controller > Entity.
Just wondering, I'm not going to use such a crutch! Traits not to offer - I know.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
L
Lander, 2016-08-21
@usdglander

class Controller extends Base 
{
...
}

class Entity extends Controller
{
...
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question