Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Public Member Functions | Protected Attributes
Log Class Reference

Public Member Functions

 __construct ($customerId=null, $lastLoginAt=null, $lastVisitAt=null, $lastLogoutAt=null)
 
 getCustomerId ()
 
 getLastLoginAt ()
 
 getLastVisitAt ()
 
 getLastLogoutAt ()
 

Protected Attributes

 $customerId
 
 $lastLoginAt
 
 $lastVisitAt
 
 $lastLogoutAt
 

Detailed Description

Customer log model.

Contains customer log data.

Definition at line 13 of file Log.php.

Constructor & Destructor Documentation

◆ __construct()

__construct (   $customerId = null,
  $lastLoginAt = null,
  $lastVisitAt = null,
  $lastLogoutAt = null 
)
Parameters
int$customerId
string$lastLoginAt
string$lastVisitAt
string$lastLogoutAt

Definition at line 49 of file Log.php.

50  {
51  $this->customerId = $customerId;
52  $this->lastLoginAt = $lastLoginAt;
53  $this->lastVisitAt = $lastVisitAt;
54  $this->lastLogoutAt = $lastLogoutAt;
55  }

Member Function Documentation

◆ getCustomerId()

getCustomerId ( )

Retrieve customer id

Returns
int

Definition at line 62 of file Log.php.

63  {
64  return $this->customerId;
65  }

◆ getLastLoginAt()

getLastLoginAt ( )

Retrieve last login date as string

Returns
string

Definition at line 72 of file Log.php.

73  {
74  return $this->lastLoginAt;
75  }

◆ getLastLogoutAt()

getLastLogoutAt ( )

Retrieve last logout date as string

Returns
string

Definition at line 92 of file Log.php.

93  {
94  return $this->lastLogoutAt;
95  }

◆ getLastVisitAt()

getLastVisitAt ( )

Retrieve last visit date as string

Returns
string

Definition at line 82 of file Log.php.

83  {
84  return $this->lastVisitAt;
85  }

Field Documentation

◆ $customerId

$customerId
protected

Definition at line 20 of file Log.php.

◆ $lastLoginAt

$lastLoginAt
protected

Definition at line 27 of file Log.php.

◆ $lastLogoutAt

$lastLogoutAt
protected

Definition at line 41 of file Log.php.

◆ $lastVisitAt

$lastVisitAt
protected

Definition at line 34 of file Log.php.


The documentation for this class was generated from the following file: