/** * @param ItemCollection $data */ public function setData(ItemCollection $data) { $this->data = $data->unique(); }