public function PhoneNumberVerification::setCode in SMS Framework 2.x
Same name and namespace in other branches
- 8 src/Entity/PhoneNumberVerification.php \Drupal\sms\Entity\PhoneNumberVerification::setCode()
- 2.1.x src/Entity/PhoneNumberVerification.php \Drupal\sms\Entity\PhoneNumberVerification::setCode()
Sets the code for the phone number verification.
Parameters
string $code: The code for the phone number verification.
Return value
$this Return phone number verification for chaining.
Overrides PhoneNumberVerificationInterface::setCode
File
- src/
Entity/ PhoneNumberVerification.php, line 90
Class
- PhoneNumberVerification
- Defines the phone number verification entity.
Namespace
Drupal\sms\EntityCode
public function setCode($code) {
$this
->set('code', $code);
return $this;
}