-
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.
Merge branch 'feature/process_comment' into develop
- Loading branch information
Showing
6 changed files
with
169 additions
and
29 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
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,19 @@ | ||
<?php | ||
|
||
function getConfig() { | ||
return array( | ||
// JIRA Host config | ||
'host' => 'https://jira.example.com', | ||
'username' => 'username', | ||
'password' => 'password', | ||
|
||
// Options | ||
'CURLOPT_SSL_VERIFYHOST' => false, | ||
'CURLOPT_SSL_VERIFYPEER' => false, | ||
'CURLOPT_VERBOSE' => true, | ||
'LOG_FILE' => 'QQjira-rest-client.log', | ||
'LOG_LEVEL' => 'DEBUG' | ||
); | ||
} | ||
|
||
?> |
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,55 @@ | ||
<?php | ||
|
||
namespace JiraRestApi\Issue; | ||
|
||
class Visibility { | ||
public $type; | ||
public $value; | ||
} | ||
|
||
class Comment implements \JsonSerializable { | ||
/* @var string */ | ||
public $self; | ||
|
||
/* @var string */ | ||
public $id; | ||
|
||
/* @var Reporter */ | ||
public $author; | ||
|
||
/* @var string */ | ||
public $body; | ||
|
||
/* @var Reporter */ | ||
public $updateAuthor; | ||
|
||
/* @var DateTime */ | ||
public $created; | ||
|
||
/* @var DateTime */ | ||
public $updated; | ||
|
||
/* @var Visibility */ | ||
public $visibility; | ||
|
||
public function setBody($body) { | ||
$this->body = $body; | ||
return $this; | ||
} | ||
|
||
public function setVisibility($type, $value) { | ||
if (is_null($this->visibility)) | ||
$this->visibility = array(); | ||
|
||
$this->visibility['type'] = $type; | ||
$this->visibility['value'] = $value; | ||
return $this; | ||
} | ||
|
||
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
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
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