next_for_drupal_pantheon-1.0.x-dev/src/Entity/PantheonNextInterface.php
src/Entity/PantheonNextInterface.php
<?php
namespace Drupal\next_for_drupal_pantheon\Entity;
use Drupal\consumers\Entity\Consumer;
use Drupal\Core\Entity\ContentEntityInterface;
use Drupal\Core\Entity\EntityChangedInterface;
use Drupal\next\Entity\NextSiteInterface;
use Drupal\user\EntityOwnerInterface;
/**
* Provides an interface for defining PantheonNext entities.
*
* @ingroup next_for_drupal_pantheon
*/
interface PantheonNextInterface extends ContentEntityInterface, EntityChangedInterface, EntityOwnerInterface {
/**
* Gets the referenced next site entity.
*
* @return \Drupal\next\Entity\NextSiteInterface|null
* The referenced next site entity.
*/
public function getNextSite(): ?NextSiteInterface;
/**
* Gets the referenced OAuth consumer.
*
* @return \Drupal\consumers\Entity\Consumer|null
* Returns the OAuth consumer.
*/
public function getConsumer(): ?Consumer;
/**
* Gets the PantheonNext creation timestamp.
*
* @return int
* Creation timestamp of the PantheonNext.
*/
public function getCreatedTime();
/**
* Sets the PantheonNext creation timestamp.
*
* @param int $timestamp
* The PantheonNext creation timestamp.
*
* @return \Drupal\next_for_drupal_pantheon\Entity\PantheonNextInterface
* The called PantheonNext entity.
*/
public function setCreatedTime($timestamp);
}
