public function PaymentMethod::setReusable in Commerce Core 8.2
Sets whether the payment method is reusable.
Parameters
bool $reusable: Whether the payment method is reusable.
Return value
$this
Overrides PaymentMethodInterface::setReusable
File
- modules/
payment/ src/ Entity/ PaymentMethod.php, line 153
Class
- PaymentMethod
- Defines the payment method entity class.
Namespace
Drupal\commerce_payment\EntityCode
public function setReusable($reusable) {
$this
->set('reusable', $reusable);
return $this;
}