public function __construct($db, $user = null, $log = null, $torrent = null, $mailbox = null) { $this->db = $db; $this->user = $user; $this->log = $log; $this->torrent = $torrent; $this->mailbox = $mailbox; }