1 | <?php |
||
11 | class VersionnedBundle extends Bundle |
||
12 | { |
||
13 | /** |
||
14 | * Version |
||
15 | * |
||
16 | * @var Version |
||
17 | */ |
||
18 | protected $version; |
||
19 | |||
20 | /** |
||
21 | * Indicate if bundle needs to be installed or if it can be used without installation |
||
22 | * |
||
23 | * @var boolean |
||
24 | */ |
||
25 | protected $needInstallation = true; |
||
26 | |||
27 | /** |
||
28 | * Indicate if bundle needs to be up to date or if it can be used without being up to date |
||
29 | * |
||
30 | * @var boolean |
||
31 | */ |
||
32 | protected $needUpToDate = true; |
||
33 | |||
34 | /** |
||
35 | * Boot the bundle |
||
36 | * |
||
37 | * @throws Exception |
||
38 | */ |
||
39 | public function boot() |
||
72 | |||
73 | /** |
||
74 | * Return version |
||
75 | * |
||
76 | * @return Version |
||
77 | */ |
||
78 | public function getVersion() |
||
82 | |||
83 | /** |
||
84 | * Define if bundle needs to be installed |
||
85 | * |
||
86 | * @param boolean $needInstallation |
||
87 | * @return VersionnedBundle |
||
88 | */ |
||
89 | public function setNeedInstallation($needInstallation) |
||
94 | |||
95 | /** |
||
96 | * Get if bundle needs to be installed |
||
97 | * |
||
98 | * @return boolean |
||
99 | */ |
||
100 | public function getNeedInstallation() |
||
104 | |||
105 | /** |
||
106 | * Define if bundle needs to be up-to-date |
||
107 | * |
||
108 | * @param boolean $needUpToDate |
||
109 | * @return VersionnedBundle |
||
110 | */ |
||
111 | public function setNeedUpToDate($needUpToDate) |
||
116 | |||
117 | /** |
||
118 | * Get if bundle needs to be up-to-date |
||
119 | * |
||
120 | * @return boolean |
||
121 | */ |
||
122 | public function getNeedUpToDate() |
||
126 | } |
||
127 |