farm-2.x-dev/modules/core/data_stream/src/Entity/DataStreamInterface.php
modules/core/data_stream/src/Entity/DataStreamInterface.php
<?php namespace Drupal\data_stream\Entity; use Drupal\Core\Entity\ContentEntityInterface; use Drupal\Core\Entity\EntityChangedInterface; /** * Interface for the DataStream entity type. */ interface DataStreamInterface extends ContentEntityInterface, EntityChangedInterface { /** * Returns an instance of the data stream bundle plugin. * * @return \Drupal\data_stream\Plugin\DataStream\DataStreamType\DataStreamTypeInterface * The data stream bundle plugin. */ public function getPlugin(); /** * Gets the data stream name. * * @return string * The data stream name. */ public function getName(); /** * Sets the data stream name. * * @param string $name * The data stream name. * * @return \Drupal\data_stream\Entity\DataStreamInterface * The data stream entity. */ public function setName(string $name); /** * Gets the data stream creation timestamp. * * @return int * Creation timestamp of the data stream. */ public function getCreatedTime(); /** * Sets the data_stream creation timestamp. * * @param int $timestamp * Creation timestamp of the data stream. * * @return \Drupal\data_stream\Entity\DataStreamInterface * The data_stream entity. */ public function setCreatedTime($timestamp); /** * Gets the data stream private key. * * @return string * The data stream private key. */ public function getPrivateKey(); /** * Returns the data stream public property. * * @return bool * If the data stream is public. */ public function isPublic(); /** * Gets the label of the the asset type. * * @return string * The label of the asset type. */ public function getBundleLabel(); }