Passed
Push — master ( 60b6ca...163cac )
by Kylian
06:19
created

ResponseDownload::setDownloadStatus()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 2
c 1
b 0
f 0
nc 1
nop 1
dl 0
loc 4
rs 10
1
<?php
2
3
namespace KriKrixs\object\response;
4
5
use KriKrixs\object\User\User;
6
7
class ResponseDownload extends Response
8
{
9
    private string $downloadStatus = "All downloaded";
10
11
    /**
12
     * Get download status
13
     * @return string
14
     */
15
    public function getDownloadStatus(): string
16
    {
17
        return $this->downloadStatus;
18
    }
19
20
    /**
21
     * Set download status
22
     * @param string $downloadStatus
23
     * @return ResponseDownload
24
     */
25
    public function setDownloadStatus(string $downloadStatus): ResponseDownload
26
    {
27
        $this->downloadStatus = $downloadStatus;
28
        return $this;
29
    }
30
}