declared class properties

This commit is contained in:
benson
2023-04-29 21:15:52 +08:00
parent 13fd802180
commit a197f66d6d
16 changed files with 65 additions and 14 deletions

View File

@@ -8,6 +8,9 @@ use OCA\NCDownloader\Db\Helper as DbHelper;
class Counters
{
private $minmax = [0, 999];
private $aria2;
private $dbconn;
private $uid;
public function __construct(Aria2 $aria2, DbHelper $dbconn, $uid)
{

View File

@@ -11,6 +11,8 @@ class folderScan
private $user;
private $path;
private $realDir;
private $logger;
private $scanner;
public function __construct($path = null, $user = null)
{
$this->user = $user ?? Helper::getUID();