11<?php
22namespace phpbu \App ;
33
4- use phpbu \App \Exception ;
5- use phpbu \App \Listener ;
64use phpbu \Backup \Check ;
75use phpbu \Backup \Cleaner ;
86use phpbu \Backup \Source ;
1513 * @package phpbu
1614 * @subpackage App
1715 * @author Sebastian Feldmann <[email protected] > 18- * @copyright 2014 Sebastian Feldmann <[email protected] > 16+ * @copyright Sebastian Feldmann <[email protected] > 1917 * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License
2018 * @link http://www.phpbu.de/
2119 * @since Class available since Release 1.0.0
@@ -88,6 +86,7 @@ public static function create($type, $alias)
8886 */
8987 public static function createLogger ($ alias , $ conf = array ())
9088 {
89+ /** @var \phpbu\Log\Logger $logger */
9190 $ logger = self ::create ('logger ' , $ alias );
9291 if (!($ logger instanceof Logger)) {
9392 throw new Exception (sprintf ('logger \'%s \' has to implement the \'Logger \' interfaces ' , $ alias ));
@@ -109,6 +108,7 @@ public static function createLogger($alias, $conf = array())
109108 */
110109 public static function createSource ($ alias , $ conf = array ())
111110 {
111+ /** @var \phpbu\Backup\Source $source */
112112 $ source = self ::create ('source ' , $ alias );
113113 if (!($ source instanceof Source)) {
114114 throw new Exception (sprintf ('source \'%s \' has to implement the \'Source \' interface ' , $ alias ));
@@ -121,12 +121,12 @@ public static function createSource($alias, $conf = array())
121121 * Check Factory.
122122 *
123123 * @param string $alias
124- * @param array $conf
125124 * @throws \phpbu\App\Exception
126125 * @return \phpbu\Backup\Check
127126 */
128127 public static function createCheck ($ alias )
129128 {
129+ /** @var \phpbu\Backup\Check $check */
130130 $ check = self ::create ('check ' , $ alias );
131131 if (!($ check instanceof Check)) {
132132 throw new Exception (sprintf ('Check \'%s \' has to implement the \'Check \' interface ' , $ alias ));
@@ -144,6 +144,7 @@ public static function createCheck($alias)
144144 */
145145 public static function createSync ($ alias , $ conf = array ())
146146 {
147+ /** @var \phpbu\Backup\Sync $sync */
147148 $ sync = self ::create ('sync ' , $ alias );
148149 if (!($ sync instanceof Sync)) {
149150 throw new Exception (sprintf ('sync \'%s \' has to implement the \'Sync \' interface ' , $ alias ));
@@ -162,6 +163,7 @@ public static function createSync($alias, $conf = array())
162163 */
163164 public static function createCleaner ($ alias , $ conf = array ())
164165 {
166+ /** @var \phpbu\Backup\Cleaner $cleaner */
165167 $ cleaner = self ::create ('cleaner ' , $ alias );
166168 if (!($ cleaner instanceof Cleaner)) {
167169 throw new Exception (sprintf ('cleaner \'%s \' has to implement the \'Cleaner \' interface ' , $ alias ));
@@ -173,10 +175,10 @@ public static function createCleaner($alias, $conf = array())
173175 /**
174176 * Extend the backup factory.
175177 *
176- * @param string $type Type to create 'source', 'check', 'sync' or 'cleaner'
177- * @param string $alias Name the class is registered at
178- * @param string $fqcn Full Qualified Class Name
179- * @param string $force Overwrite already registered class
178+ * @param string $type Type to create 'source', 'check', 'sync' or 'cleaner'
179+ * @param string $alias Name the class is registered at
180+ * @param string $fqcn Full Qualified Class Name
181+ * @param boolean $force Overwrite already registered class
180182 * @throws \phpbu\App\Exception
181183 */
182184 public static function register ($ type , $ alias , $ fqcn , $ force = false )
@@ -191,7 +193,7 @@ public static function register($type, $alias, $fqcn, $force = false)
191193 }
192194
193195 /**
194- * Throws an excepton if type is invalid.
196+ * Throws an exception if type is invalid.
195197 *
196198 * @param string $type
197199 * @throws \phpbu\App\Exception
0 commit comments