| 1 | <?php |
||
| 11 | class DoctrineWorker implements Worker |
||
| 12 | { |
||
| 13 | /** |
||
| 14 | * @var ManagerRegistry |
||
| 15 | */ |
||
| 16 | private $managerRegistry; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * @param ManagerRegistry $managerRegistry |
||
| 20 | */ |
||
| 21 | function __construct(ManagerRegistry $managerRegistry) |
||
| 25 | |||
| 26 | /** |
||
| 27 | * @inheritdoc |
||
| 28 | */ |
||
| 29 | public function mount(Element $element) |
||
| 35 | } |
||
| 36 |
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.