| 1 | <?php |
||
| 25 | class Container |
||
| 26 | { |
||
| 27 | /** |
||
| 28 | * the container |
||
| 29 | * |
||
| 30 | * @var ContainerBuilder |
||
| 31 | */ |
||
| 32 | private $container; |
||
| 33 | |||
| 34 | /** |
||
| 35 | * Constructor |
||
| 36 | * |
||
| 37 | * @return void |
||
|
|
|||
| 38 | **/ |
||
| 39 | public function __construct() |
||
| 45 | |||
| 46 | /** |
||
| 47 | * Load a yaml config file |
||
| 48 | * |
||
| 49 | * @param string $file |
||
| 50 | * @return Container |
||
| 51 | **/ |
||
| 52 | public function loadFile($file) |
||
| 62 | |||
| 63 | /** |
||
| 64 | * Get the container |
||
| 65 | * |
||
| 66 | * @return ContainerBuilder |
||
| 67 | */ |
||
| 68 | public function getContainer() |
||
| 72 | |||
| 73 | /** |
||
| 74 | * Set the container |
||
| 75 | * |
||
| 76 | * @param ContainerBuilder $container |
||
| 77 | * @return Container |
||
| 78 | */ |
||
| 79 | public function setContainer(ContainerBuilder $container) |
||
| 85 | } |
||
| 86 |
Adding a
@returnannotation to a constructor is not recommended, since a constructor does not have a meaningful return value.Please refer to the PHP core documentation on constructors.