I'm using a php library.
It has a class with a method that takes as parameter exactly this text that I will write: TextElementInterface $pText = null
. In the definition of TextElementInterface
it is an interface.
How do I pass this via parameter? for example if it was a class it was just instantiate to assign it to a variable and pass that variable by parameter in the desired method, but an interface I do not know how to do?