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

ResponseDownload   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 5
c 1
b 0
f 0
dl 0
loc 22
rs 10
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A setDownloadStatus() 0 4 1
A getDownloadStatus() 0 3 1
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
}