G
G
gistol2019-04-23 14:46:05
PHP
gistol, 2019-04-23 14:46:05

How to implement an interface generator based on a loadable class?

Greetings.
Help solve the following problem:
A php-file containing one class is loaded through the web interface. The script generates an interface for this class. The method of outputting the result (ready-made interface) is up to you.
It is necessary to take into account: that a class can be abstract, contain traits, implement another interface.
Also, if there is no type of arguments or return value, they must be taken into account in the interface.
Does anyone have any examples or ideas how to implement this?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question