<?php class T { } class Y { private $ts; public function __construct($ts) { $this->setTs(...$ts); } private function setTs(T ...$ts) { $this->ts = $ts; } } $c = new Y([new T, new T, new T]);
You have javascript disabled. You will not be able to edit any code.