src/Wasabi.php
public static function user($user = null)
    {
        if ($user !== null) {
            self::$_user = $user;
        }
        if (!self::$_user) {
            return null;
        }
        return self::$_user;
    }
public static function user($user = null)
    {
        if ($user !== null) {
            self::$_user = $user;
        }
        if (!self::$_user) {
            return null;
        }
        return self::$_user;
    }
public static function user ( $ user = null ) { if ( $ user !== null ) { self :: $ _user = $ user ; } if ( ! self :: $ _user ) { return null ; } return self :: $ _user ; }
Get or set the currently logged in user.

@param User $user The user to set (optional).
@return User
Get or set the currently logged in user .