-
Notifications
You must be signed in to change notification settings - Fork 262
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- add issue's changelog mapping class (History, ChangeLog)
- resource expansion (fixed #145)
- Loading branch information
Showing
3 changed files
with
81 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
<?php | ||
|
||
namespace JiraRestApi\Issue; | ||
|
||
/** | ||
* Issue ChangeLog | ||
* | ||
* Class ChangeLog | ||
* | ||
* @package JiraRestApi\Issue | ||
*/ | ||
class ChangeLog implements \JsonSerializable | ||
{ | ||
/** @var integer */ | ||
public $startAt; | ||
|
||
/** @var integer */ | ||
public $maxResults; | ||
|
||
/** @var integer */ | ||
public $total; | ||
|
||
/** @var History[]|null */ | ||
public $histories; | ||
|
||
public function jsonSerialize() | ||
{ | ||
return array_filter(get_object_vars($this)); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
<?php | ||
|
||
namespace JiraRestApi\Issue; | ||
|
||
/** | ||
* ChangeLog History | ||
* | ||
* Class History | ||
* | ||
* @package JiraRestApi\Issue | ||
*/ | ||
class History implements \JsonSerializable | ||
{ | ||
/** @var integer */ | ||
public $id; | ||
|
||
/** @var Reporter */ | ||
public $author; | ||
|
||
/** @var string */ | ||
public $created; | ||
|
||
/** @var array|null */ | ||
public $items; | ||
|
||
public function jsonSerialize() | ||
{ | ||
return array_filter(get_object_vars($this)); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters