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