public function __construct($id, $data) { $this->id = $id; $this->hash = $data['hash'] ?? null; $this->ext = $data['ext'] ?? null; }