/** * Constructor */ public function __construct($path = null, $mode = 'w+') { $filename = null !== $path ? $path : self::$path . '/' . StringUtils::randString(self::$filenameLength); parent::__construct($filename, $mode); }