FOSSology
4.4.0
Open Source License Compliance by Open Source Software
ShowJob.php
Go to the documentation of this file.
1
<?php
2
/*
3
SPDX-FileCopyrightText: © 2022 Krishna Mahato <krishhtrishh9304@gmail.com>
4
5
SPDX-License-Identifier: GPL-2.0-only
6
*/
11
namespace
Fossology\UI\Api\Models;
12
17
class
ShowJob
18
{
23
private
$jobId
;
28
private
$jobName
;
33
private
$jobQueue
;
38
private
$uploadId
;
39
47
public
function
__construct
(
$jobId
,
$jobName
,
$jobQueue
,
$uploadId
)
48
{
49
$this->
setJobId
(
$jobId
);
50
$this->
setJobName
(
$jobName
);
51
$this->
setJobQueue
(
$jobQueue
);
52
$this->
setUploadId
(
$uploadId
);
53
}
54
58
public
function
getJobId
()
59
{
60
return
$this->jobId
;
61
}
62
66
public
function
setJobId
(
$jobId
)
67
{
68
$this->
jobId
= intval(
$jobId
);
69
}
70
74
public
function
getJobName
()
75
{
76
return
$this->jobName
;
77
}
78
82
public
function
setJobName
(
$jobName
)
83
{
84
$this->jobName =
$jobName
;
85
}
86
90
public
function
getJobQueue
(): array
91
{
92
return
$this->jobQueue
;
93
}
94
98
public
function
setJobQueue
(
$jobQueue
)
99
{
100
$this->jobQueue =
$jobQueue
;
101
}
102
106
public
function
getUploadId
()
107
{
108
return
$this->uploadId
;
109
}
110
114
public
function
setUploadId
(
$uploadId
)
115
{
116
$this->uploadId = intval(
$uploadId
);
117
}
118
123
public
function
getJSON
()
124
{
125
return
json_encode($this->
getArray
());
126
}
127
132
public
function
getArray
()
133
{
134
return
[
135
"jobId"
=> $this->
getJobId
(),
136
"jobName"
=> $this->
getJobName
(),
137
"jobQueue"
=> $this->
getJobQueue
(),
138
"uploadId"
=> $this->
getUploadId
()
139
];
140
}
141
}
Fossology\UI\Api\Models\ShowJob
Model class to hold ShowJob info.
Definition:
ShowJob.php:18
Fossology\UI\Api\Models\ShowJob\setJobName
setJobName($jobName)
Definition:
ShowJob.php:82
Fossology\UI\Api\Models\ShowJob\getJobQueue
getJobQueue()
Definition:
ShowJob.php:90
Fossology\UI\Api\Models\ShowJob\__construct
__construct($jobId, $jobName, $jobQueue, $uploadId)
Definition:
ShowJob.php:47
Fossology\UI\Api\Models\ShowJob\getUploadId
getUploadId()
Definition:
ShowJob.php:106
Fossology\UI\Api\Models\ShowJob\getJobId
getJobId()
Definition:
ShowJob.php:58
Fossology\UI\Api\Models\ShowJob\getArray
getArray()
Definition:
ShowJob.php:132
Fossology\UI\Api\Models\ShowJob\setJobId
setJobId($jobId)
Definition:
ShowJob.php:66
Fossology\UI\Api\Models\ShowJob\$jobQueue
$jobQueue
Definition:
ShowJob.php:33
Fossology\UI\Api\Models\ShowJob\getJSON
getJSON()
Definition:
ShowJob.php:123
Fossology\UI\Api\Models\ShowJob\$jobName
$jobName
Definition:
ShowJob.php:28
Fossology\UI\Api\Models\ShowJob\setJobQueue
setJobQueue($jobQueue)
Definition:
ShowJob.php:98
Fossology\UI\Api\Models\ShowJob\getJobName
getJobName()
Definition:
ShowJob.php:74
Fossology\UI\Api\Models\ShowJob\$uploadId
$uploadId
Definition:
ShowJob.php:38
Fossology\UI\Api\Models\ShowJob\$jobId
$jobId
Definition:
ShowJob.php:23
Fossology\UI\Api\Models\ShowJob\setUploadId
setUploadId($uploadId)
Definition:
ShowJob.php:114
jobId
int jobId
The id of the job.
Definition:
libfossscheduler.c:35
src
www
ui
api
Models
ShowJob.php
Generated on Mon Nov 18 2024 07:37:14 for FOSSology by
1.9.1