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