Ejemplo n.º 1
0
 /**
  * Initalizing factory with global attachment settings
  * 
  * @param int     $storageType       Storage type   
  * @param string  $defaultKey        Default key
  * @param boolean $encryptionEnabled Enabled encryption?
  * 
  * @return null
  */
 public static function init($storageType, $defaultKey, $encryptionEnabled)
 {
     if (null === self::$storageType) {
         self::$storageType = $storageType;
     }
     if (null === self::$defaultKey) {
         self::$defaultKey = $defaultKey;
     }
     if (null === self::$encryptionEnabled) {
         self::$encryptionEnabled = $encryptionEnabled;
     }
 }