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