class ClassOne
{
private $foo = null;
public function __construct()
{
$this->foo = new ClassTwo();
}
public function doStuff()
{
$bar = &$this->foo->someVariable;
}
}
I know that $this
refers to the current object, and &
is a reference symbol for changing the original variable.
What is &$this
referring to?