Level 102
I don't think it has any special word except class instantiation. What are you comparing it to?
2 likes
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
What do we call this kind of class instantiation?
(new PublishPostAction())->execute($post);
If you mean the concept behind it, it's just the GoF Command pattern named as "Action"s.
Please or to participate in this conversation.