You are here

public function PhoneNumberVerification::setPhoneNumber in SMS Framework 2.x

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

Sets the phone number for the phone number verification.

Parameters

string $phone_number: The phone number for the phone number verification.

Return value

$this Return phone number verification for chaining.

Overrides PhoneNumberVerificationInterface::setPhoneNumber

File

src/Entity/PhoneNumberVerification.php, line 75

Class

PhoneNumberVerification
Defines the phone number verification entity.

Namespace

Drupal\sms\Entity

Code

public function setPhoneNumber($phone_number) {
  $this
    ->set('phone', $phone_number);
  return $this;
}