I need a way to see if a instance was created by an alias.
class Dummy
{
}
class_alias('Dummy', 'Pipe');
$pipe = new Pipe();
This is what I need:
echo $pipe->calledWith();
OUTPUT: 'pipe'
I need a way to see if a instance was created by an alias.
class Dummy
{
}
class_alias('Dummy', 'Pipe');
$pipe = new Pipe();
This is what I need:
echo $pipe->calledWith();
OUTPUT: 'pipe'