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 | * Add a provider. |
||
41 | * |
||
42 | * @param ProviderInterface $provider The provider. |
||
43 | * @return ManagerInterface Returns this manager. |
||
44 | */ |
||
45 | public function addProvider(ProviderInterface $provider) { |
||
49 | |||
50 | /** |
||
51 | * Get the providers. |
||
52 | * |
||
53 | * @return ProviderInterface[] Returns the provider. |
||
54 | */ |
||
55 | public function &getProviders() { |
||
58 | |||
59 | /** |
||
60 | * {@inheritdoc} |
||
61 | */ |
||
62 | public function hasProviders() { |
||
65 | |||
66 | /** |
||
67 | * {@inheritdoc} |
||
68 | */ |
||
69 | public function registerProvider(ProviderInterface $provider) { |
||
72 | |||
73 | /** |
||
74 | * Set the providers. |
||
75 | * |
||
76 | * @param ProviderInterface $providers The providers. |
||
77 | * @return ManagerInterface Returns this manager. |
||
78 | */ |
||
79 | protected function setProviders(array $providers) { |
||
83 | |||
84 | /** |
||
85 | * {@inheritdoc} |
||
86 | */ |
||
87 | public function size() { |
||
90 | |||
91 | } |
||
92 |