PHP Class Flarum\Core\Guest

Inheritance: extends User
Show file Open project: flarum/core

Public Properties

Property Type Description
$id integer Override the ID of this user, as a guest does not have an ID.

Public Methods

Method Description
getGroupsAttribute ( ) : Group Get the guest's group, containing only the 'guests' group model.
isGuest ( )

Method Details

getGroupsAttribute() public method

Get the guest's group, containing only the 'guests' group model.
public getGroupsAttribute ( ) : Group
return Group

isGuest() public method

public isGuest ( )

Property Details

$id public property

Override the ID of this user, as a guest does not have an ID.
public int $id
return integer