<?php class Bar {} class Foo { public $bar; public function __construct(Bar $bar) { $this->bar = $bar; } } $foo = new Foo($bar = new Bar); var_dump($bar === $foo->bar);
You have javascript disabled. You will not be able to edit any code.