From 56c530a0e0f5a7b28de1add0da499e50f776b2b7 Mon Sep 17 00:00:00 2001 From: Steve Boyd Date: Thu, 14 Dec 2023 15:15:40 +1300 Subject: [PATCH] MNT Update @methods on class docblocks --- src/Extensions/MemberExtension.php | 3 +-- src/Extensions/RememberLoginHashExtension.php | 3 +++ src/Models/LoginSession.php | 1 + 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/Extensions/MemberExtension.php b/src/Extensions/MemberExtension.php index bc4e18e..34e4a9e 100644 --- a/src/Extensions/MemberExtension.php +++ b/src/Extensions/MemberExtension.php @@ -10,8 +10,7 @@ /** * Augment `Member` to allow relationship to the LoginSession DataObject - * @method LoginSession[]|DataList LoginSessions() - * @method Member getOwner() + * @method SilverStripe\ORM\HasManyList LoginSessions() */ class MemberExtension extends DataExtension { diff --git a/src/Extensions/RememberLoginHashExtension.php b/src/Extensions/RememberLoginHashExtension.php index cb47419..b72d0cf 100644 --- a/src/Extensions/RememberLoginHashExtension.php +++ b/src/Extensions/RememberLoginHashExtension.php @@ -8,6 +8,9 @@ use SilverStripe\SessionManager\Models\LoginSession; use SilverStripe\SessionManager\Security\LogInAuthenticationHandler; +/** + * @method LoginSession LoginSession() + */ class RememberLoginHashExtension extends Extension { /** diff --git a/src/Models/LoginSession.php b/src/Models/LoginSession.php index 6614b87..e8f8665 100644 --- a/src/Models/LoginSession.php +++ b/src/Models/LoginSession.php @@ -27,6 +27,7 @@ * @property string $UserAgent * @property bool $Persistent * @property integer $MemberID + * @method RememberLoginHash LoginHash() * @method Member Member() */ class LoginSession extends DataObject