| 1 | <?php |
||
| 41 | class Transition implements \JsonSerializable |
||
|
|
|||
| 42 | { |
||
| 43 | /** |
||
| 44 | * @var string |
||
| 45 | */ |
||
| 46 | public $id; |
||
| 47 | |||
| 48 | /** |
||
| 49 | * @var string |
||
| 50 | */ |
||
| 51 | public $name; |
||
| 52 | |||
| 53 | /** |
||
| 54 | * @var TransitionTo |
||
| 55 | */ |
||
| 56 | public $to; |
||
| 57 | |||
| 58 | /** |
||
| 59 | * @var array |
||
| 60 | */ |
||
| 61 | public $fields; |
||
| 62 | |||
| 63 | /** |
||
| 64 | * @var IssueField |
||
| 65 | */ |
||
| 66 | public $issueFields; |
||
| 67 | |||
| 68 | /** |
||
| 69 | * @var array |
||
| 70 | */ |
||
| 71 | public $transition; |
||
| 72 | |||
| 73 | public $update; |
||
| 74 | |||
| 75 | public function setTransitionName($name) |
||
| 83 | |||
| 84 | public function setTransitionId($id) |
||
| 92 | |||
| 93 | public function setCommentBody($commentBody) |
||
| 104 | |||
| 105 | public function jsonSerialize() |
||
| 109 | } |
||
| 110 |
Having each class in a dedicated file usually plays nice with PSR autoloaders and is therefore a well established practice. If you use other autoloaders, you might not want to follow this rule.