You are here

public function License::setGrantedTime in Commerce License 8.2

Sets the granted timestamp.

Parameters

int $timestamp: The granted timestamp.

Return value

$this

Overrides LicenseInterface::setGrantedTime

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

File

src/Entity/License.php, line 200

Class

License
Defines the License entity.

Namespace

Drupal\commerce_license\Entity

Code

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