Source of file HasEventServiceTrait.php
Size: 0,652 Bytes - Last Modified: 2021-12-24T06:51:36+00:00
/var/www/docs.ssmods.com/process/src/src/Traits/HasEventServiceTrait.php
1234567891011121314151617181920212223242526272829303132333435 | <?php namespace Heystack\Core\Traits; use Heystack\Core\EventDispatcher; /** * Allows a using class to set a event service * @package Heystack\Core\Traits */ trait HasEventServiceTrait { /** * @var \Heystack\Core\EventDispatcher */ protected $eventService; /** * @param \Heystack\Core\EventDispatcher $eventService * @return void */ public function setEventService(EventDispatcher $eventService) { $this->eventService = $eventService; } /** * @return \Heystack\Core\EventDispatcher */ public function getEventService() { return $this->eventService; } } |