EventDispatcherAwareFeatureRepository
in package
implements
FeatureRepository
Interfaces, Classes and Traits
Table of Contents
- $eventDispatcher : EventDispatcherInterface
- $featureRepository : FeatureRepository
- __construct() : mixed
- get() : Feature
- remove() : void
- save() : void
- dispatchEvents() : void
Properties
$eventDispatcher
private
EventDispatcherInterface
$eventDispatcher
$featureRepository
private
FeatureRepository
$featureRepository
Methods
__construct()
public
__construct(FeatureRepository $featureRepository, EventDispatcherInterface $eventDispatcher) : mixed
Parameters
- $featureRepository : FeatureRepository
- $eventDispatcher : EventDispatcherInterface
Return values
mixed —get()
public
get(FeatureId $featureId) : Feature
Parameters
- $featureId : FeatureId
Return values
Feature —remove()
public
remove(Feature $feature) : void
Parameters
- $feature : Feature
Return values
void —save()
public
save(Feature $feature) : void
Parameters
- $feature : Feature
Return values
void —dispatchEvents()
private
dispatchEvents(array<string|int, object> $events) : void
Parameters
- $events : array<string|int, object>