You are here

public function PhoneNumberSettings::setVerificationCodeLifetime in SMS Framework 2.x

Same name and namespace in other branches
  1. 8 src/Entity/PhoneNumberSettings.php \Drupal\sms\Entity\PhoneNumberSettings::setVerificationCodeLifetime()
  2. 2.1.x src/Entity/PhoneNumberSettings.php \Drupal\sms\Entity\PhoneNumberSettings::setVerificationCodeLifetime()

Sets the number of seconds before phone number verifications expire.

Parameters

int $lifetime: Number of seconds before phone number verifications expire.

Return value

$this Return phone number settings for chaining.

Overrides PhoneNumberSettingsInterface::setVerificationCodeLifetime

File

src/Entity/PhoneNumberSettings.php, line 174

Class

PhoneNumberSettings
Defines storage for an SMS Gateway instance.

Namespace

Drupal\sms\Entity

Code

public function setVerificationCodeLifetime($lifetime) {
  $this->verification_code_lifetime = $lifetime;
  return $this;
}