| 1 | <?php |
||
| 23 | abstract class AbstractManager implements ManagerInterface { |
||
| 24 | |||
| 25 | /** |
||
| 26 | * Providers. |
||
| 27 | * |
||
| 28 | * @var ProviderInterface[] |
||
| 29 | */ |
||
| 30 | private $providers; |
||
| 31 | |||
| 32 | /** |
||
| 33 | * Constructor. |
||
| 34 | */ |
||
| 35 | public function __construct() { |
||
| 38 | |||
| 39 | /** |
||
| 40 | * {@inheritDoc} |
||
| 41 | */ |
||
| 42 | public function addProvider(ProviderInterface $provider) { |
||
| 46 | |||
| 47 | /** |
||
| 48 | * {@inheritDoc} |
||
| 49 | */ |
||
| 50 | public function contains(ProviderInterface $provider) { |
||
| 53 | |||
| 54 | /** |
||
| 55 | * Get the providers. |
||
| 56 | * |
||
| 57 | * @return ProviderInterface[] Returns the provider. |
||
| 58 | */ |
||
| 59 | public function &getProviders() { |
||
| 62 | |||
| 63 | /** |
||
| 64 | * {@inheritDoc} |
||
| 65 | */ |
||
| 66 | public function hasProviders() { |
||
| 69 | |||
| 70 | /** |
||
| 71 | * {@inheritDoc} |
||
| 72 | */ |
||
| 73 | public function indexOf(ProviderInterface $provider) { |
||
| 82 | |||
| 83 | /** |
||
| 84 | * Set the providers. |
||
| 85 | * |
||
| 86 | * @param ProviderInterface[] $providers The providers. |
||
| 87 | * @return ManagerInterface Returns this manager. |
||
| 88 | */ |
||
| 89 | protected function setProviders(array $providers) { |
||
| 93 | |||
| 94 | /** |
||
| 95 | * {@inheritDoc} |
||
| 96 | */ |
||
| 97 | public function size() { |
||
| 100 | } |
||
| 101 |