public function setCategory(\Magento\Catalog\Api\Data\CategoryInterface $category)
    {
        $this->category = $category;

        return $this;
    }
public function setCategory(\Magento\Catalog\Api\Data\CategoryInterface $category)
    {
        $this->category = $category;

        return $this;
    }
public function setCategory ( \ Magento \ Catalog \ Api \ Data \ CategoryInterface $ category ) { $ this -> category = $ category ; return $ this ; }
Set the current category for the collection.

@param \Magento\Catalog\Api\Data\CategoryInterface $category Current category.

@return \Smile\ElasticsuiteCatalog\Model\ResourceModel\Product\FilterableAttribute\Category\Collection
Set the current category for the collection .