Files
php-flasher/SweetAlertFactory.php
T
Khoubza Younes b4506620d3 update namespaces
2020-12-06 17:29:32 +01:00

33 lines
656 B
PHP

<?php
namespace Flasher\SweetAlert\Prime;
use Flasher\Prime\Factory\AbstractFactory;
final class SweetAlertFactory extends AbstractFactory
{
/**
* @inheritDoc
*/
public function createNotification()
{
return new SweetAlert();
}
/**
* @inheritDoc
*/
public function createNotificationBuilder()
{
return new SweetAlertBuilder($this->getEventDispatcher(), $this->createNotification(), 'sweet_alert');
}
/**
* @inheritDoc
*/
public function supports($name = null, array $context = array())
{
return in_array($name, array(__CLASS__, 'sweet_alert'));
}
}