| 1 | <?php |
||
| 27 | class ServiceContainerBuilder extends \PEIP\Data\InternalStoreAbstract |
||
| 28 | { |
||
| 29 | /** |
||
| 30 | * @param $key |
||
| 31 | * @param $factory |
||
| 32 | * |
||
| 33 | * @return |
||
| 34 | */ |
||
| 35 | public function setFactory($key, DedicatedFactory $factory) |
||
| 39 | |||
| 40 | /** |
||
| 41 | * @param $key |
||
| 42 | * |
||
| 43 | * @return |
||
| 44 | */ |
||
| 45 | public function getFactory($key) |
||
| 49 | |||
| 50 | /** |
||
| 51 | * @param $key |
||
| 52 | * |
||
| 53 | * @return |
||
| 54 | */ |
||
| 55 | public function hasFactory($key) |
||
| 59 | |||
| 60 | /** |
||
| 61 | * @param $key |
||
| 62 | * |
||
| 63 | * @return |
||
| 64 | */ |
||
| 65 | public function deleteFactory($key) |
||
| 69 | |||
| 70 | /** |
||
| 71 | * @param $key |
||
| 72 | * |
||
| 73 | * @return |
||
| 74 | */ |
||
| 75 | public function getService($key) |
||
| 79 | |||
| 80 | /** |
||
| 81 | * @param $key |
||
| 82 | * |
||
| 83 | * @return |
||
| 84 | */ |
||
| 85 | public function buildService($key) |
||
| 89 | } |
||
| 90 |
In PHP it is possible to write to properties without declaring them. For example, the following is perfectly valid PHP code:
Generally, it is a good practice to explictly declare properties to avoid accidental typos and provide IDE auto-completion: