fix php 5.6 in docker dev env (#1740)
[openemr.git] / vendor / adldap2 / adldap2 / src / Models / Traits / HasLastLogonAndLogOff.php
blob4cb2ec2ce4997ecbfbdfe6d08d9696d6506a5feb
1 <?php
3 namespace Adldap\Models\Traits;
5 trait HasLastLogonAndLogOff
7 /**
8 * Returns the models's last log off date.
10 * https://msdn.microsoft.com/en-us/library/ms676822(v=vs.85).aspx
12 * @return string
14 public function getLastLogOff()
16 return $this->getAttribute($this->schema->lastLogOff(), 0);
19 /**
20 * Returns the models's last log on date.
22 * https://msdn.microsoft.com/en-us/library/ms676823(v=vs.85).aspx
24 * @return string
26 public function getLastLogon()
28 return $this->getAttribute($this->schema->lastLogOn(), 0);
31 /**
32 * Returns the models's last log on timestamp.
34 * https://msdn.microsoft.com/en-us/library/ms676824(v=vs.85).aspx
36 * @return string
38 public function getLastLogonTimestamp()
40 return $this->getAttribute($this->schema->lastLogOnTimestamp(), 0);