| 1 | <?php |
||
| 6 | class LifecycleEventArgs extends \Doctrine\Common\EventArgs |
||
| 7 | { |
||
| 8 | private $document; |
||
| 9 | |||
| 10 | private $documentManager; |
||
| 11 | |||
| 12 | function __construct($document, $documentManager) |
||
| 17 | |||
| 18 | /** |
||
| 19 | * @return object |
||
| 20 | */ |
||
| 21 | public function getDocument() |
||
| 25 | |||
| 26 | /** |
||
| 27 | * @return \Doctrine\ODM\CouchDB\DocumentManager |
||
| 28 | */ |
||
| 29 | public function getDocumentManager() |
||
| 33 | } |
||
| 34 |
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.