@name        setDateLastLogin ()

@author      Can Berkol

@since       1.1.4
@version     1.1.4

@param       mixed $date_last_login

@return      $this
439067
public function setDateLastLogin($date_last_login){
        if(!$this->setModified('date_last_login', $date_last_login)->isModified()){
            return $this;
        }
        $this->date_last_login = $date_last_login;

        return $this;
    }
657364
public function setDateBirth($date_birth){
        if(!$this->setModified('date_birth', $date_birth)->isModified()){
            return $this;
        }
        $this->date_birth = $date_birth;

        return $this;
    }
766301
public function setExpire($expire)
	{
		if (null !== $expire)
		{
			$this->expire = $expire instanceof \DateTime ? $expire->getTimestamp() : (int) $expire;
		}
		else
		{
			$this->expire = $expire;
		}

		return $this;
	}
1093319
public function setExpireTime(\DateTime $date)
    {
        $date->setTimezone(new \DateTimeZone('UTC'));
        $this->_claims['exp'] = (int)$date->format('U');

        return $this;
    }
666010
public function setAuth($login, $password)
    {
        $this->login    = $login;
        $this->password = $password;

        $this->apiClient
            ->setBearerToken(null)
            ->setShopId($this->login)
            ->setShopPassword($this->password);

        return $this;
    }
980064
public function setDateEnd( $date )
	{
		if ( $date == $this->getDateEnd() ) { return; }

		$this->_checkDateFormat($date);

		$this->_values['end'] = ( $date !== null ? (string) $date : null );

		$this->setModified();
	}
941841
public function setLogin($login)
    {
        $this->login = (string)$login;
        $this->ip    = null;
        $this->port  = null;
        return $this;
    }
1236651
public function setExpirationDate($expirationDate)
    {
        if (is_string($expirationDate)) {
            $expirationDate = new \DateTime($expirationDate);
        }

        $this->expirationDate = $expirationDate;

        return $this;
    }
87652
public function updateLastLogin(string $time = null): void
    {
        $this->timestamps = false;
        $this->last_login = is_null($time) ? $this->freshTimestamp() : $time;
        $this->save();

        $this->updateLastActivity();
    }
843953
public function setLastName($v)
    {
        if ($v !== null) {
            $v = (string) $v;
        }

        if ($this->last_name !== $v) {
            $this->last_name = $v;
            $this->modifiedColumns[UserTableMap::COL_LAST_NAME] = true;
        }

        return $this;
    }
383416
public function setOrderDate($orderDate = '')
    {
        if (strtotime($orderDate) === -1) {
            $this->orderDate = null;

            return false;
        }

        $dateFormatPattern = "^((((19|20)(([02468][048])|([13579][26]))-02-29))|((20[0-9][0-9])|(19[0-9][0-9]))-((((0[1-9])|(1[0-2]))-((0[1-9])|(1\d)|(2[0-8])))|((((0[13578])|(1[02]))-31)|(((0[1,3-9])|(1[0-2]))-(29|30)))))^";

        if (!preg_match($dateFormatPattern, $orderDate)) {
            $this->orderDate = null;

            return false;
        }

        if (strtotime($orderDate) > strtotime(date("Y-m-d H:i:s"))) {
            $this->orderDate = null;

            return false;
        }

        $this->orderDate = $orderDate;

        return true;
    }
510615
public function setLastBuildDate($lastBuildDate)
    {
        if ($lastBuildDate instanceof \DateTime) {
            $this->lastBuildDate = $lastBuildDate;
        } else {
            $this->lastBuildDate = new \DateTime($lastBuildDate);
        }

        return $this;
    }
574757
public function getLastLogin() : Carbon
    {
        if ($this->lastLoginParsed !== null) {
            return $this->lastLoginParsed;
        }

        $name = $this->getLastLoginKey();

        $lastLogin = $this->asDateTime($this->getAttributeFromArray($name) ?? Carbon::now());

        return $this->{$name} = $this->lastLoginParsed = Carbon::createFromFormat('Y-m-d H:i:s', $lastLogin);
    }
317340
public function setLastModified(\DateTimeInterface $date = null)
    {
        if (null === $date) {
            $this->headers->remove('Last-Modified');

            return $this;
        }

        if ($date instanceof \DateTime) {
            $date = \DateTimeImmutable::createFromMutable($date);
        }

        $date = $date->setTimezone(new \DateTimeZone('UTC'));
        $this->headers->set('Last-Modified', $date->format('D, d M Y H:i:s').' GMT');

        return $this;
    }
1222722
public function setLastLoginTime(\DateTime $time = null)
	{
		if (is_null($time)) {
			$time = new \DateTime();
		}
		$this->lastLoginTime = $time;
	}
984115
public function setDateEnd(\DateTime $date_end = null)
    {
        $this->date_end = $date_end ? clone $date_end : null;

        return $this;
    }
170882
public function setEndDate($date)
    {
        $date = AnDomainAttributeDate::getInstance()->setDate($date);
        $this->set('endDate', $date);

        return $this;
    }