class QueueItem extends Model

QueueItem

Properties

boolean $blocked
boolean $buildable
integer $id
integer $inQueueSince
string $params
boolean $stuck
Task $task
URI $url
string $why
integer $buildableStartMilliseconds

Methods

static Model
getInstanceFromJson(string $json)

Instanz aus einem JSON-String erstellen

from Model
__construct(integer $id)

Neues Objekt erstellen

boolean
getBlocked()

getBlocked

boolean
getBuildable()

getBuildable

integer
getId()

getId

integer
getInQueueSince()

getInQueueSince

string
getParams()

getParams

boolean
getStuck()

getStuck

getTask()

getTask

URI
getUrl()

getUrl

string
getWhy()

getWhy

integer
getBuildableStartMilliseconds()

getBuildableStartMilliseconds

setBlocked(boolean $blocked)

setBlocked

setBuildable(boolean $buildable)

setBuildable

setInQueueSince(integer $inQueueSince)

setInQueueSince

setParams(string $params)

setParams

setStuck(boolean $stuck)

setStuck

setTask(Task $task)

setTask

setUrl(URI $url)

setUrl

setWhy(string $why)

setWhy

setBuildableStartMilliseconds(integer $buildableStartMilliseconds)

setBuildableStartMilliseconds

static QueueItem
getInstanceFromArray(Array $array)

getInstanceFromArray

Details

in Model at line 45
static Model getInstanceFromJson(string $json)

Instanz aus einem JSON-String erstellen

Parameters

string $json Json Zeichenkette

Return Value

Model Datenobjekt

Exceptions

TypeException Wenn die JSON-Zeichenkette kein Array abbildet oder Fehlerhaft ist

at line 92
__construct(integer $id)

Neues Objekt erstellen

Parameters

integer $id ID

at line 104
boolean getBlocked()

getBlocked

Return Value

boolean

at line 114
boolean getBuildable()

getBuildable

Return Value

boolean

at line 124
integer getId()

getId

Return Value

integer

at line 134
integer getInQueueSince()

getInQueueSince

Return Value

integer

at line 144
string getParams()

getParams

Return Value

string

at line 154
boolean getStuck()

getStuck

Return Value

boolean

at line 163
Task getTask()

getTask

Return Value

Task

at line 173
URI getUrl()

getUrl

Return Value

URI

at line 183
string getWhy()

getWhy

Return Value

string

at line 193
integer getBuildableStartMilliseconds()

getBuildableStartMilliseconds

Return Value

integer

at line 204
QueueItem setBlocked(boolean $blocked)

setBlocked

Parameters

boolean $blocked

Return Value

QueueItem

at line 216
QueueItem setBuildable(boolean $buildable)

setBuildable

Parameters

boolean $buildable

Return Value

QueueItem

at line 228
QueueItem setInQueueSince(integer $inQueueSince)

setInQueueSince

Parameters

integer $inQueueSince

Return Value

QueueItem

at line 240
QueueItem setParams(string $params)

setParams

Parameters

string $params

Return Value

QueueItem

at line 252
QueueItem setStuck(boolean $stuck)

setStuck

Parameters

boolean $stuck

Return Value

QueueItem

at line 264
QueueItem setTask(Task $task)

setTask

Parameters

Task $task

Return Value

QueueItem

at line 276
QueueItem setUrl(URI $url)

setUrl

Parameters

URI $url

Return Value

QueueItem

at line 288
QueueItem setWhy(string $why)

setWhy

Parameters

string $why

Return Value

QueueItem

at line 300
QueueItem setBuildableStartMilliseconds(integer $buildableStartMilliseconds)

setBuildableStartMilliseconds

Parameters

integer $buildableStartMilliseconds

Return Value

QueueItem

at line 330
static QueueItem getInstanceFromArray(Array $array)

getInstanceFromArray

{
 "blocked": true,
 "buildable": false,
 "id": 584,
 "inQueueSince": 1415993102377,
 "params": "\n(JiraVersionParameterValue)BRANCHES='trunk'",
 "stuck": false,
 "task": {
    "name": "www",
    "url": "http: //example.com/job/www/"
 },
 "url": "queue/item/584/",
 "why": "Build#311istbereitsinArbeit(ETA: 3Minuten0Sekunden)",
 "buildableStartMilliseconds": 1415993102377
}

Parameters

Array $array

Return Value

QueueItem