-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
459 additions
and
45 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
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,199 @@ | ||
<?php namespace Sifter\Model; | ||
|
||
use Carbon\Carbon; | ||
|
||
class Issue { | ||
|
||
private $number; | ||
private $categoryName; | ||
private $priority; | ||
private $subject; | ||
private $description; | ||
private $milestoneName; | ||
private $openerName; | ||
private $openerNmail; | ||
private $assigneeName; | ||
private $assigneeNmail; | ||
private $status; | ||
private $commentCount; | ||
private $attachmentCount; | ||
private $createdAt; | ||
private $updatedAt; | ||
private $url; | ||
private $apiUrl; | ||
|
||
private $curl; | ||
|
||
/** | ||
* Issue constructor. | ||
* @param $number | ||
* @param $categoryName | ||
* @param $priority | ||
* @param $subject | ||
* @param $description | ||
* @param $milestoneName | ||
* @param $openerName | ||
* @param $openerNmail | ||
* @param $assigneeName | ||
* @param $assigneeNmail | ||
* @param $status | ||
* @param $commentCount | ||
* @param $attachmentCount | ||
* @param $createdAt | ||
* @param $updatedAt | ||
* @param $url | ||
* @param $apiUrl | ||
*/ | ||
public function __construct($number, $categoryName, $priority, $subject, $description, $milestoneName, $openerName, $openerNmail, $assigneeName, $assigneeNmail, $status, $commentCount, $attachmentCount, $createdAt, $updatedAt, $url, $apiUrl) | ||
{ | ||
$this->number = $number; | ||
$this->categoryName = $categoryName; | ||
$this->priority = $priority; | ||
$this->subject = $subject; | ||
$this->description = $description; | ||
$this->milestoneName = $milestoneName; | ||
$this->openerName = $openerName; | ||
$this->openerNmail = $openerNmail; | ||
$this->assigneeName = $assigneeName; | ||
$this->assigneeNmail = $assigneeNmail; | ||
$this->status = $status; | ||
$this->commentCount = $commentCount; | ||
$this->attachmentCount = $attachmentCount; | ||
$this->createdAt = new Carbon($createdAt); | ||
$this->updatedAt = new Carbon($updatedAt); | ||
$this->url = $url; | ||
$this->apiUrl = $apiUrl; | ||
} | ||
|
||
/** | ||
* @return mixed | ||
*/ | ||
public function getNumber() | ||
{ | ||
return $this->number; | ||
} | ||
|
||
/** | ||
* @return mixed | ||
*/ | ||
public function getCategoryName() | ||
{ | ||
return $this->categoryName; | ||
} | ||
|
||
/** | ||
* @return mixed | ||
*/ | ||
public function getPriority() | ||
{ | ||
return $this->priority; | ||
} | ||
|
||
/** | ||
* @return mixed | ||
*/ | ||
public function getSubject() | ||
{ | ||
return $this->subject; | ||
} | ||
|
||
/** | ||
* @return mixed | ||
*/ | ||
public function getDescription() | ||
{ | ||
return $this->description; | ||
} | ||
|
||
/** | ||
* @return mixed | ||
*/ | ||
public function getMilestoneName() | ||
{ | ||
return $this->milestoneName; | ||
} | ||
|
||
/** | ||
* @return mixed | ||
*/ | ||
public function getOpenerName() | ||
{ | ||
return $this->openerName; | ||
} | ||
|
||
/** | ||
* @return mixed | ||
*/ | ||
public function getOpenerNmail() | ||
{ | ||
return $this->openerNmail; | ||
} | ||
|
||
/** | ||
* @return mixed | ||
*/ | ||
public function getAssigneeName() | ||
{ | ||
return $this->assigneeName; | ||
} | ||
|
||
/** | ||
* @return mixed | ||
*/ | ||
public function getAssigneeNmail() | ||
{ | ||
return $this->assigneeNmail; | ||
} | ||
|
||
/** | ||
* @return mixed | ||
*/ | ||
public function getStatus() | ||
{ | ||
return $this->status; | ||
} | ||
|
||
/** | ||
* @return mixed | ||
*/ | ||
public function getCommentCount() | ||
{ | ||
return $this->commentCount; | ||
} | ||
|
||
/** | ||
* @return mixed | ||
*/ | ||
public function getAttachmentCount() | ||
{ | ||
return $this->attachmentCount; | ||
} | ||
|
||
/** | ||
* @return mixed | ||
*/ | ||
public function getCreatedAt() | ||
{ | ||
return $this->createdAt->copy(); | ||
} | ||
|
||
/** | ||
* @return mixed | ||
*/ | ||
public function getUpdatedAt() | ||
{ | ||
return $this->updatedAt->copy(); | ||
} | ||
|
||
/** | ||
* @return mixed | ||
*/ | ||
public function getUrl() | ||
{ | ||
return $this->url; | ||
} | ||
|
||
|
||
|
||
|
||
} |
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
Oops, something went wrong.