public function __construct($collection, $ref) { $this->collection = $collection; $this->ref = $ref; }