1 | <?php |
||
7 | class CustomEntityListenerServiceResolver implements EntityListenerServiceResolver |
||
8 | { |
||
9 | /** @var EntityListenerServiceResolver */ |
||
10 | private $resolver; |
||
11 | |||
12 | public function __construct(EntityListenerServiceResolver $resolver) |
||
16 | |||
17 | /** |
||
18 | * {@inheritdoc} |
||
19 | */ |
||
20 | function clear($className = null) |
||
24 | |||
25 | /** |
||
26 | * {@inheritdoc} |
||
27 | */ |
||
28 | function resolve($className) |
||
32 | |||
33 | /** |
||
34 | * {@inheritdoc} |
||
35 | */ |
||
36 | function register($object) |
||
40 | |||
41 | /** |
||
42 | * {@inheritdoc} |
||
43 | */ |
||
44 | public function registerService($className, $serviceId) |
||
48 | } |
||
49 |
Adding explicit visibility (
private
,protected
, orpublic
) is generally recommend to communicate to other developers how, and from where this method is intended to be used.