chrisbryan17's picture
Upload folder using huggingface_hub
d2897cd verified
<?php
namespace Mautic\CategoryBundle\Event;
use Mautic\CategoryBundle\Entity\Category;
use Mautic\CoreBundle\Event\CommonEvent;
class CategoryEvent extends CommonEvent
{
/**
* @param bool $isNew
*/
public function __construct(Category &$category, $isNew = false)
{
$this->entity = &$category;
$this->isNew = $isNew;
}
/**
* Returns the Category entity.
*
* @return Category
*/
public function getCategory()
{
return $this->entity;
}
/**
* Sets the Category entity.
*/
public function setCategory(Category $category): void
{
$this->entity = $category;
}
}