public function PaymentMethod::setCreatedTime in Commerce Core 8.2
Sets the payment method creation timestamp.
Parameters
int $timestamp: The payment method creation timestamp.
Return value
$this
Overrides PaymentMethodInterface::setCreatedTime
File
- modules/
payment/ src/ Entity/ PaymentMethod.php, line 206
Class
- PaymentMethod
- Defines the payment method entity class.
Namespace
Drupal\commerce_payment\EntityCode
public function setCreatedTime($timestamp) {
$this
->set('created', $timestamp);
return $this;
}