Skip to content

Commit 66a06ac

Browse files
author
emreakay
committed
- remove fix
1 parent ece901e commit 66a06ac

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

src/Contracts/IssueActorModelContract.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ interface IssueActorModelContract extends ConnectiveContract
1818
{
1919
public function getIssueActorName(): string;
2020

21+
public static function getModelType(): string;
22+
23+
public function getModelId(): int;
24+
2125
/**
2226
* ConnectiveCollection<AIssue>
2327
*/

tests/Models/User.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111

1212
/**
1313
* @property string $name
14+
* @property int $id
1415
*/
1516
class User extends Model implements ConnectiveContract, IssueActorModelContract
1617
{
@@ -43,4 +44,14 @@ public static function searchIssueActor(string $searchTerm): Collection
4344
{
4445
return User::query()->where('name', 'like', '%'.$searchTerm.'%')->get();
4546
}
47+
48+
public static function getModelType(): string
49+
{
50+
return self::class;
51+
}
52+
53+
public function getModelId(): int
54+
{
55+
return $this->id;
56+
}
4657
}

0 commit comments

Comments
 (0)