Good day everyone. For one of the projects, my task is to make a LinQ-like selection of data from the list object. Actually, I would like to abstract lists as much as possible, but at the same time not to lose such a wonderful function as autocompletion during selection. Actually, in order to abstract this business, an object of the sheet itself is needed, which in the constructor would accept the type of data it will rely on. Attention, question =)
How to make it more concise? If you pass a string with the name of the type / class, there is a high probability of a handshake during initialization (the project is not done by me alone) + there is no auto-completion
Having obtained the type of stored objects, how can I pass it to the parameters of PHPDoc?
I admit that the decision may be non-trivial, but so far there are no ideas.
Thank you very much!