You are here

public function Quantity::setCreatedTime in farmOS 2.x

Sets the quantity creation timestamp.

Parameters

int $timestamp: Creation timestamp of the quantity.

Return value

\Drupal\quantity\Entity\QuantityInterface The quantity entity.

Overrides QuantityInterface::setCreatedTime

File

modules/core/quantity/src/Entity/Quantity.php, line 97

Class

Quantity
Defines the Quantity entity.

Namespace

Drupal\quantity\Entity

Code

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