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