Added the zend framework 2 library, the path is specified in line no.26 in zend_modul...
[openemr.git] / interface / modules / zend_modules / library / Zend / EventManager / SharedEventAggregateAwareInterface.php
blob69b2b7915a4f0b983e41ca81d62656a0c41053be
1 <?php
2 /**
3 * Zend Framework (http://framework.zend.com/)
5 * @link http://github.com/zendframework/zf2 for the canonical source repository
6 * @copyright Copyright (c) 2005-2013 Zend Technologies USA Inc. (http://www.zend.com)
7 * @license http://framework.zend.com/license/new-bsd New BSD License
8 */
10 namespace Zend\EventManager;
13 /**
14 * Interface for allowing attachment of shared aggregate listeners.
16 interface SharedEventAggregateAwareInterface
18 /**
19 * Attach a listener aggregate
21 * @param SharedListenerAggregateInterface $aggregate
22 * @param int $priority If provided, a suggested priority for the aggregate to use
23 * @return mixed return value of {@link SharedListenerAggregateInterface::attachShared()}
25 public function attachAggregate(SharedListenerAggregateInterface $aggregate, $priority = 1);
27 /**
28 * Detach a listener aggregate
30 * @param SharedListenerAggregateInterface $aggregate
31 * @return mixed return value of {@link SharedListenerAggregateInterface::detachShared()}
33 public function detachAggregate(SharedListenerAggregateInterface $aggregate);