class Task extends Model

Task

Properties

string $name
URI $url

Methods

static Model
getInstanceFromJson(string $json)

Instanz aus einem JSON-String erstellen

from Model
__construct(string $name, URI $url = null)

__construct

string
getName()

getName

URI
getUrl()

getUrl

setName(string $name)

setName

setUrl(URI $url)

setUrl

static Task
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 53
__construct(string $name, URI $url = null)

__construct

Parameters

string $name Name
URI $url URI

at line 65
string getName()

getName

Return Value

string Name

at line 74
URI getUrl()

getUrl

Return Value

URI

at line 85
Task setName(string $name)

setName

Parameters

string $name Name

Return Value

Task

at line 97
Task setUrl(URI $url)

setUrl

Parameters

URI $url

Return Value

Task

at line 109
static Task getInstanceFromArray(Array $array)

getInstanceFromArray

Parameters

Array $array

Return Value

Task