You are here

public function CommerceFileLicenseEntity::get_expiration in Commerce File 7

Expiration

File

includes/commerce_file_license.entity.inc, line 746
Provides a base class for CommerceFileLicenseEntity.

Class

CommerceFileLicenseEntity
A Commerce File License entity class.

Code

public function get_expiration() {
  $duration = $this
    ->get_duration();
  if (!empty($this->granted) && isset($duration) && !$this
    ->check_limit_is_unlimited($duration)) {
    return $this->granted + $duration;
  }
}