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 | * Get the providers. |
||
49 | * |
||
50 | * @return ProviderInterface[] Returns the provider. |
||
51 | */ |
||
52 | public function &getProviders() { |
||
55 | |||
56 | /** |
||
57 | * {@inheritdoc} |
||
58 | */ |
||
59 | public function hasProviders() { |
||
62 | |||
63 | /** |
||
64 | * {@inheritdoc} |
||
65 | */ |
||
66 | public function removeProvider(ProviderInterface $provider) { |
||
75 | |||
76 | /** |
||
77 | * Set the providers. |
||
78 | * |
||
79 | * @param ProviderInterface $providers The providers. |
||
80 | * @return ManagerInterface Returns this manager. |
||
81 | */ |
||
82 | protected function setProviders(array $providers) { |
||
86 | |||
87 | /** |
||
88 | * {@inheritdoc} |
||
89 | */ |
||
90 | public function size() { |
||
93 | |||
94 | } |
||
95 |