You are here

public function License::setExpiresTime in Commerce License 8.2

Sets the License expiration timestamp.

Parameters

int $timestamp: The License expiration timestamp.

Return value

\Drupal\commerce_license\Entity\LicenseInterface The called License entity.

Overrides LicenseInterface::setExpiresTime

1 call to License::setExpiresTime()
License::preSave in src/Entity/License.php
Acts on an entity before the presave hook is invoked.

File

src/Entity/License.php, line 185

Class

License
Defines the License entity.

Namespace

Drupal\commerce_license\Entity

Code

public function setExpiresTime($timestamp) {
  $this
    ->set('expires', $timestamp);
  return $this;
}