src/Smalot/Magento/Catalog/Category.php
public function assignProduct($categoryId, $productId, $position = null, $identifierType = null)
    {
        return $this->__createAction('catalog_category.assignProduct', func_get_args());
    }
public function assignProduct($categoryId, $productId, $position = null, $identifierType = null)
    {
        return $this->__createAction('catalog_category.assignProduct', func_get_args());
    }
public function assignProduct ( $ categoryId , $ productId , $ position = null , $ identifierType = null ) { return $ this -> __createAction ( 'catalog_category.assignProduct' , func_get_args ( ) ) ; }
Assign a product to the required category.

@param int    $categoryId
@param string $productId
@param string $position
@param string $identifierType

@return ActionInterface
Assign a product to the required category .