git subrepo commit (merge) mailcow/src/mailcow-dockerized
subrepo: subdir: "mailcow/src/mailcow-dockerized"
merged: "02ae5285"
upstream: origin: "https://github.com/mailcow/mailcow-dockerized.git"
branch: "master"
commit: "649a5c01"
git-subrepo: version: "0.4.3"
origin: "???"
commit: "???"
Change-Id: I870ad468fba026cc5abf3c5699ed1e12ff28b32b
diff --git a/mailcow/src/mailcow-dockerized/data/web/inc/lib/vendor/adldap2/adldap2/src/Models/Concerns/HasLastLogonAndLogOff.php b/mailcow/src/mailcow-dockerized/data/web/inc/lib/vendor/adldap2/adldap2/src/Models/Concerns/HasLastLogonAndLogOff.php
new file mode 100644
index 0000000..3aee2a5
--- /dev/null
+++ b/mailcow/src/mailcow-dockerized/data/web/inc/lib/vendor/adldap2/adldap2/src/Models/Concerns/HasLastLogonAndLogOff.php
@@ -0,0 +1,42 @@
+<?php
+
+namespace Adldap\Models\Concerns;
+
+trait HasLastLogonAndLogOff
+{
+ /**
+ * Returns the models's last log off date.
+ *
+ * @link https://msdn.microsoft.com/en-us/library/ms676822(v=vs.85).aspx
+ *
+ * @return string
+ */
+ public function getLastLogOff()
+ {
+ return $this->getFirstAttribute($this->schema->lastLogOff());
+ }
+
+ /**
+ * Returns the models's last log on date.
+ *
+ * @link https://msdn.microsoft.com/en-us/library/ms676823(v=vs.85).aspx
+ *
+ * @return string
+ */
+ public function getLastLogon()
+ {
+ return $this->getFirstAttribute($this->schema->lastLogOn());
+ }
+
+ /**
+ * Returns the models's last log on timestamp.
+ *
+ * @link https://msdn.microsoft.com/en-us/library/ms676824(v=vs.85).aspx
+ *
+ * @return string
+ */
+ public function getLastLogonTimestamp()
+ {
+ return $this->getFirstAttribute($this->schema->lastLogOnTimestamp());
+ }
+}