| 1 | <?php |
||
| 16 | abstract class AbstractStrategy extends AbstractOptions implements |
||
| 17 | ListenerAggregateInterface, |
||
| 18 | StrategyInterface |
||
| 19 | { |
||
| 20 | /** |
||
| 21 | * @var callable[] |
||
| 22 | */ |
||
| 23 | protected $listeners = []; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * {@inheritDoc} |
||
| 27 | */ |
||
| 28 | public function detach(EventManagerInterface $events) |
||
| 35 | |||
| 36 | /** |
||
| 37 | * {@inheritDoc} |
||
| 38 | */ |
||
| 39 | public function attach(EventManagerInterface $events, $listener = 1) |
||
| 43 | |||
| 44 | /** |
||
| 45 | * @param CacheEvent $event |
||
| 46 | * @return bool |
||
| 47 | */ |
||
| 48 | public function shouldCacheCallback(CacheEvent $event) |
||
| 52 | } |
||
| 53 |