Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
* develop:
  to update mixed method return value to Model class. (Ex: User|object => User)
  • Loading branch information
lesstif committed Jun 3, 2020
2 parents 203e0b5 + fee79e1 commit f8feccb
Show file tree
Hide file tree
Showing 6 changed files with 26 additions and 26 deletions.
4 changes: 2 additions & 2 deletions src/Auth/AuthService.php
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ public function __construct(ConfigurationInterface $configuration = null, Logger
* @throws \JiraRestApi\JiraException
* @throws \JsonMapper_Exception
*
* @return CurrentUser|object
* @return CurrentUser
*/
public function getCurrentUser()
{
Expand Down Expand Up @@ -140,7 +140,7 @@ public function logout()
* @throws \JiraRestApi\JiraException
* @throws \JsonMapper_Exception
*
* @return AuthSession|object
* @return AuthSession
*/
public function login($username = null, $password = null)
{
Expand Down
2 changes: 1 addition & 1 deletion src/Field/FieldService.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ public function getCustomFieldOption($id)
* @throws \JiraRestApi\JiraException
* @throws \JsonMapper_Exception
*
* @return Field|object created field class
* @return Field created field class
*/
public function create(Field $field)
{
Expand Down
8 changes: 4 additions & 4 deletions src/Group/GroupService.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class GroupService extends \JiraRestApi\JiraClient
* @throws \JiraRestApi\JiraException
* @throws \JsonMapper_Exception
*
* @return Group|object
* @return Group
*/
public function get($paramArray)
{
Expand All @@ -42,7 +42,7 @@ public function get($paramArray)
* @throws \JiraRestApi\JiraException
* @throws \JsonMapper_Exception
*
* @return GroupSearchResult|object
* @return GroupSearchResult
*/
public function getMembers($paramArray)
{
Expand All @@ -67,7 +67,7 @@ public function getMembers($paramArray)
* @throws \JiraRestApi\JiraException
* @throws \JsonMapper_Exception
*
* @return Group|object
* @return Group
*/
public function createGroup(Group $group)
{
Expand All @@ -94,7 +94,7 @@ public function createGroup(Group $group)
* @throws \JiraRestApi\JiraException
* @throws \JsonMapper_Exception
*
* @return Group|object Returns the current state of the group.
* @return Group Returns the current state of the group.
*/
public function addUserToGroup(string $groupName, string $userName)
{
Expand Down
28 changes: 14 additions & 14 deletions src/Issue/IssueService.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class IssueService extends \JiraRestApi\JiraClient
*
* @throws \JsonMapper_Exception
*
* @return Issue|object
* @return Issue
*/
public function getIssueFromJSON($json)
{
Expand All @@ -36,7 +36,7 @@ public function getIssueFromJSON($json)
* @throws JiraException
* @throws \JsonMapper_Exception
*
* @return Issue|object class
* @return Issue class
*/
public function get($issueIdOrKey, $paramArray = [], $issueObject = null)
{
Expand Down Expand Up @@ -65,7 +65,7 @@ public function get($issueIdOrKey, $paramArray = [], $issueObject = null)
* @throws JiraException
* @throws \JsonMapper_Exception
*
* @return Issue|object created issue key
* @return Issue created issue key
*/
public function create($issueField)
{
Expand Down Expand Up @@ -227,7 +227,7 @@ public function update($issueIdOrKey, $issueField, $paramArray = [])
* @throws JiraException
* @throws \JsonMapper_Exception
*
* @return Comment|object Comment class
* @return Comment Comment class
*/
public function addComment($issueIdOrKey, $comment)
{
Expand Down Expand Up @@ -260,7 +260,7 @@ public function addComment($issueIdOrKey, $comment)
* @throws JiraException
* @throws \JsonMapper_Exception
*
* @return Comment|object Comment class
* @return Comment Comment class
*/
public function updateComment($issueIdOrKey, $id, $comment)
{
Expand Down Expand Up @@ -293,7 +293,7 @@ public function updateComment($issueIdOrKey, $id, $comment)
* @throws JiraException
* @throws \JsonMapper_Exception
*
* @return Comment|object Comment class
* @return Comment Comment class
*/
public function getComment($issueIdOrKey, $id, array $paramArray = [])
{
Expand All @@ -319,7 +319,7 @@ public function getComment($issueIdOrKey, $id, array $paramArray = [])
* @throws JiraException
* @throws \JsonMapper_Exception
*
* @return Comment|object Comment class
* @return Comment Comment class
*/
public function getComments($issueIdOrKey, array $paramArray = [])
{
Expand Down Expand Up @@ -539,7 +539,7 @@ public function transition($issueIdOrKey, $transition)
* @throws JiraException
* @throws \JsonMapper_Exception
*
* @return IssueSearchResult|object
* @return IssueSearchResult
*/
public function search($jql, $startAt = 0, $maxResults = 15, $fields = [], $expand = [], $validateQuery = true)
{
Expand Down Expand Up @@ -632,7 +632,7 @@ public function timeTracking($issueIdOrKey, $timeTracking)
* @throws JiraException
* @throws \JsonMapper_Exception
*
* @return PaginatedWorklog|object
* @return PaginatedWorklog
*/
public function getWorklog($issueIdOrKey)
{
Expand All @@ -655,7 +655,7 @@ public function getWorklog($issueIdOrKey)
* @throws JiraException
* @throws \JsonMapper_Exception
*
* @return Worklog|object PaginatedWorklog object
* @return Worklog PaginatedWorklog object
*/
public function getWorklogById($issueIdOrKey, $workLogId)
{
Expand All @@ -678,7 +678,7 @@ public function getWorklogById($issueIdOrKey, $workLogId)
* @throws JiraException
* @throws \JsonMapper_Exception
*
* @return Worklog|object Worklog Object
* @return Worklog Worklog Object
*/
public function addWorklog($issueIdOrKey, $worklog)
{
Expand Down Expand Up @@ -708,7 +708,7 @@ public function addWorklog($issueIdOrKey, $worklog)
* @throws JiraException
* @throws \JsonMapper_Exception
*
* @return Worklog|object
* @return Worklog
*/
public function editWorklog($issueIdOrKey, $worklog, $worklogId)
{
Expand Down Expand Up @@ -779,7 +779,7 @@ public function getAllPriorities()
* @throws JiraException
* @throws \JsonMapper_Exception
*
* @return Priority|object priority
* @return Priority priority
*/
public function getPriority($priorityId)
{
Expand All @@ -804,7 +804,7 @@ public function getPriority($priorityId)
* @throws JiraException
* @throws \JsonMapper_Exception
*
* @return Priority|object priority
* @return Priority priority
*/
public function getCustomFields($priorityId)
{
Expand Down
6 changes: 3 additions & 3 deletions src/Project/ProjectService.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public function getAllProjects($paramArray = [])
* @throws \JiraRestApi\JiraException
* @throws \JsonMapper_Exception
*
* @return Project|object
* @return Project
*/
public function get($projectIdOrKey)
{
Expand Down Expand Up @@ -156,7 +156,7 @@ public function getProjectTypes()
* @throws \JiraRestApi\JiraException
* @throws \JsonMapper_Exception
*
* @return ProjectType|object
* @return ProjectType
*/
public function getProjectType($key)
{
Expand All @@ -178,7 +178,7 @@ public function getProjectType($key)
* @throws \JiraRestApi\JiraException
* @throws \JsonMapper_Exception
*
* @return ProjectType|object
* @return ProjectType
*/
public function getAccessibleProjectType($key)
{
Expand Down
4 changes: 2 additions & 2 deletions src/User/UserService.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class UserService extends \JiraRestApi\JiraClient
* @throws \JiraRestApi\JiraException
* @throws \JsonMapper_Exception
*
* @return User|object User class
* @return User User class
*/
public function create($user)
{
Expand All @@ -46,7 +46,7 @@ public function create($user)
* @throws \JiraRestApi\JiraException
* @throws \JsonMapper_Exception
*
* @return User|object User class
* @return User User class
*/
public function get($paramArray)
{
Expand Down

0 comments on commit f8feccb

Please sign in to comment.