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 | protected 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 | * {@inheritdoc} |
||
85 | */ |
||
86 | public function removeProvider(ProviderInterface $provider) { |
||
93 | |||
94 | /** |
||
95 | * Set the providers. |
||
96 | * |
||
97 | * @param ProviderInterface[] $providers The providers. |
||
98 | * @return ManagerInterface Returns this manager. |
||
99 | */ |
||
100 | protected function setProviders(array $providers) { |
||
104 | |||
105 | /** |
||
106 | * {@inheritdoc} |
||
107 | */ |
||
108 | public function size() { |
||
111 | |||
112 | } |
||
113 |