public function PhoneNumberVerification::setCode in SMS Framework 8
Same name and namespace in other branches
- 2.x 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 88
Class
- PhoneNumberVerification
- Defines the phone number verification entity.
Namespace
Drupal\sms\EntityCode
public function setCode($code) {
$this
->set('code', $code);
return $this;
}