49 $hash =
new Hash(
'sha1checksum',
'md5checksum',
'sha256checksum', 123123);
50 if($version==ApiVersion::V1){
53 "foldername" =>
'root',
56 "uploadname" =>
'my.tar.gz',
57 "uploaddate" =>
'01-01-2020',
59 "assigneeDate" =>
'01-01-2020',
60 "closingDate" =>
'01-01-2020',
61 "hash" => $hash->getArray()
66 "folderName" =>
'root',
69 "uploadName" =>
'my.tar.gz',
70 "uploadDate" =>
'01-01-2020',
72 "assigneeDate" =>
'01-01-2020',
73 "closingDate" =>
'01-01-2020',
74 "hash" => $hash->getArray()
78 $actualUpload =
new Upload(2,
'root', 3,
'',
'my.tar.gz',
'01-01-2020', 3,
80 $actualUpload->setAssigneeDate(
"01-01-2020");
81 $actualUpload->setClosingDate(
"01-01-2020");
83 $this->assertEquals($expectedUpload, $actualUpload->getArray($version));
Hash model holding information about file like checksums and size.
Model class to hold Upload info.