public function License::setCreatedTime in Commerce License 8.2
Sets the License creation timestamp.
Parameters
int $timestamp: The License creation timestamp.
Return value
\Drupal\commerce_license\Entity\LicenseInterface The called License entity.
Overrides LicenseInterface::setCreatedTime
File
- src/
Entity/ License.php, line 230
Class
- License
- Defines the License entity.
Namespace
Drupal\commerce_license\EntityCode
public function setCreatedTime($timestamp) {
$this
->set('created', $timestamp);
return $this;
}