Skip to content

Commit

Permalink
MNT Update @methods on class docblocks
Browse files Browse the repository at this point in the history
  • Loading branch information
emteknetnz committed Dec 14, 2023
1 parent f03fdf5 commit 56c530a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 1 addition & 2 deletions src/Extensions/MemberExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@

/**
* Augment `Member` to allow relationship to the LoginSession DataObject
* @method LoginSession[]|DataList LoginSessions()
* @method Member getOwner()
* @method SilverStripe\ORM\HasManyList<LoginSession> LoginSessions()
*/
class MemberExtension extends DataExtension
{
Expand Down
3 changes: 3 additions & 0 deletions src/Extensions/RememberLoginHashExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
use SilverStripe\SessionManager\Models\LoginSession;
use SilverStripe\SessionManager\Security\LogInAuthenticationHandler;

/**
* @method LoginSession LoginSession()
*/
class RememberLoginHashExtension extends Extension
{
/**
Expand Down
1 change: 1 addition & 0 deletions src/Models/LoginSession.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
* @property string $UserAgent
* @property bool $Persistent
* @property integer $MemberID
* @method RememberLoginHash LoginHash()
* @method Member Member()
*/
class LoginSession extends DataObject
Expand Down

0 comments on commit 56c530a

Please sign in to comment.