1 | <?php |
||
8 | class ReportStatus extends ReportTicket |
||
9 | { |
||
10 | |||
11 | use HydratableTrait; |
||
12 | |||
13 | const STATUS_READY = 'ready'; |
||
14 | |||
15 | /** @var string */ |
||
16 | protected $status; |
||
17 | |||
18 | /** @var string */ |
||
19 | protected $name; |
||
20 | |||
21 | /** @var string */ |
||
22 | protected $url; |
||
23 | |||
24 | /** |
||
25 | * ReportStatus constructor. |
||
26 | */ |
||
27 | public function __construct() |
||
32 | |||
33 | /** |
||
34 | * @return string |
||
35 | */ |
||
36 | public function getStatus() |
||
40 | |||
41 | /** |
||
42 | * @param string $status |
||
43 | */ |
||
44 | public function setStatus($status) |
||
48 | |||
49 | /** |
||
50 | * @return string |
||
51 | */ |
||
52 | public function getName() |
||
56 | |||
57 | /** |
||
58 | * @param string $name |
||
59 | */ |
||
60 | public function setName($name) |
||
64 | |||
65 | /** |
||
66 | * @return string |
||
67 | */ |
||
68 | public function getUrl() |
||
72 | |||
73 | /** |
||
74 | * @param string $url |
||
75 | */ |
||
76 | public function setUrl($url) |
||
80 | |||
81 | /** |
||
82 | * @return bool |
||
83 | */ |
||
84 | public function isReady() |
||
88 | } |
||
89 |
This check looks for assignments to scalar types that may be of the wrong type.
To ensure the code behaves as expected, it may be a good idea to add an explicit type cast.