PHP Class JiraRestApi\Issue\Worklog

Datei anzeigen Open project: lesstif/php-jira-rest-client Class Usage Examples

Public Properties

Property Type Description
$author details about author
$comment string
$id id of worklog
$self api link of worklog
$started string
$timeSpent string
$timeSpentSeconds integer
$updateAuthor array
$updated string
$visibility array

Public Methods

Method Description
jsonSerialize ( ) : array Function to serialize obj vars.
setComment ( string $comment ) Function to set comments.
setStarted ( mixed $started ) Function to set start time of worklog.
setStartedDateTime ( DateTime $started ) Function to set start time of worklog.
setTimeSpent ( string $timeSpent ) Function to set worklog time in string.
setTimeSpentSeconds ( integer $timeSpentSeconds ) Function to set worklog time in seconds.
setVisibility ( string $type, string $value ) Function to set visibility of worklog.

Method Details

jsonSerialize() public method

Function to serialize obj vars.
public jsonSerialize ( ) : array
return array

setComment() public method

Function to set comments.
public setComment ( string $comment )
$comment string

setStarted() public method

Function to set start time of worklog.
public setStarted ( mixed $started )
$started mixed started time value(\DateTime|string) e.g. - new DateTime("2016-03-17 11:15:34") or "2016-03-17 11:15:34"

setStartedDateTime() public method

Function to set start time of worklog.
public setStartedDateTime ( DateTime $started )
$started DateTime e.g. - new DateTime("2014-04-05 16:00:00")

setTimeSpent() public method

Function to set worklog time in string.
public setTimeSpent ( string $timeSpent )
$timeSpent string

setTimeSpentSeconds() public method

Function to set worklog time in seconds.
public setTimeSpentSeconds ( integer $timeSpentSeconds )
$timeSpentSeconds integer

setVisibility() public method

Function to set visibility of worklog.
public setVisibility ( string $type, string $value )
$type string value can be group or role
$value string

Property Details

$author public_oe property

details about author
public $author

$comment public_oe property

public string $comment
return string

$id public_oe property

id of worklog
public $id

$self public_oe property

api link of worklog
public $self

$started public_oe property

public string $started
return string

$timeSpent public_oe property

public string $timeSpent
return string

$timeSpentSeconds public_oe property

public int $timeSpentSeconds
return integer

$updateAuthor public_oe property

public array $updateAuthor
return array

$updated public_oe property

public string $updated
return string

$visibility public_oe property

public array $visibility
return array