public function CommerceLicenseBase::renew in Commerce License 7
Implements CommerceLicenseInterface::renew().
Overrides CommerceLicenseInterface::renew
File
- includes/
plugins/ license_type/ base.inc, line 333 - Abstract and interface plugin implementation.
Class
- CommerceLicenseBase
- License base class.
Code
public function renew($expires) {
$num_renewals = (int) $this->wrapper->num_renewals
->value();
$this->wrapper->num_renewals = $num_renewals + 1;
$this->expires = $expires;
$this
->save();
}