ReportStatus::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 5
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
3
namespace Audiens\AppnexusClient\entity;
4
5
class ReportStatus extends ReportTicket
6
{
7
8
    use HydratableTrait;
9
10
    public const STATUS_READY = 'ready';
11
12
    /** @var  string */
13
    protected $status;
14
15
    /** @var  string */
16
    protected $name;
17
18
    /** @var string */
19
    protected $url;
20
21
    public function __construct()
22
    {
23
        $this->report_id = null;
24
        $this->cached    = false;
25
    }
26
27
    /**
28
     * @return string
29
     */
30
    public function getStatus()
31
    {
32
        return $this->status;
33
    }
34
35
    /**
36
     * @param string $status
37
     */
38
    public function setStatus($status)
39
    {
40
        $this->status = $status;
41
    }
42
43
    /**
44
     * @return string
45
     */
46
    public function getName()
47
    {
48
        return $this->name;
49
    }
50
51
    /**
52
     * @param string $name
53
     */
54
    public function setName($name)
55
    {
56
        $this->name = $name;
57
    }
58
59
    /**
60
     * @return string
61
     */
62
    public function getUrl()
63
    {
64
        return $this->url;
65
    }
66
67
    /**
68
     * @param string $url
69
     */
70
    public function setUrl($url)
71
    {
72
        $this->url = $url;
73
    }
74
75
    /**
76
     * @return bool
77
     */
78
    public function isReady()
79
    {
80
        return $this->status == self::STATUS_READY;
81
    }
82
}
83