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