File tree Expand file tree Collapse file tree 4 files changed +3
-7
lines changed
Expand file tree Collapse file tree 4 files changed +3
-7
lines changed Original file line number Diff line number Diff line change 88use Takuya \BacklogApiClient \Models \User ;
99use Takuya \BacklogApiClient \Models \Star ;
1010use Takuya \BacklogApiClient \Models \CommentNotification ;
11- use Takuya \BacklogApiClient \Models \Traits \HasStar ;
12-
1311class Comment extends BaseModel {
1412
1513 use HasID;
14+ use HasProjectId;
1615 use HasIssueId;
17- use HasStar;
1816 public ?string $ content ;
1917 public ?array $ changeLog ;
2018 /** @var object|User */
@@ -23,6 +21,6 @@ class Comment extends BaseModel {
2321 public string $ updated ;
2422 /** @var array | Star[] */
2523 public array $ stars ;
26- /** @var array | CommentNotification[] */
24+ /** @var array | CommentNotification[] */
2725 public array $ notifications ;
2826}
Original file line number Diff line number Diff line change @@ -34,7 +34,6 @@ class CommentNotification extends BaseModel {
3434 'プルリクエストの更新 ' => 13 ,
3535 ];
3636 use HasID;
37- use RelateToIssue;
3837 use RelateToComment;
3938 public bool $ alreadyRead ;
4039 public int $ reason ;
Original file line number Diff line number Diff line change @@ -16,5 +16,4 @@ public function relation($parent=null):void{
1616 parent ::relation ($ parent );
1717 $ this ->commentId = $ parent ->commentId ?? $ parent ->id ?? null ;
1818 }
19-
2019}
Original file line number Diff line number Diff line change @@ -9,6 +9,6 @@ public function getIssueId():int{
99 }
1010 public function relation ($ parent =null ):void {
1111 parent ::relation ($ parent );
12- $ this ->issue_id = $ parent ->issueId ?? $ parent ->id ?? null ;
12+ $ this ->issue_id = $ parent ->issueId ?? $ parent ->issue_id ?? $ parent -> id ?? null ;
1313 }
1414}
You can’t perform that action at this time.
0 commit comments