You are here

interface EntityUnitTypeInterface in Booking and Availability Management Tools for Drupal 8

Defines a common interface for entities that have a UnitType.

A UnitType is an entity that groups Unit entities.

Hierarchy

Expanded class hierarchy of EntityUnitTypeInterface

All classes that implement EntityUnitTypeInterface

File

modules/bat_unit/src/EntityUnitTypeInterface.php, line 15
Contains \Drupal\bat_unit\EntityUnitTypeInterface.

Namespace

Drupal\bat_unit
View source
interface EntityUnitTypeInterface {

  /**
   * Returns the entity's UnitType entity.
   *
   * @return \Drupal\bat_unit\UnitTypeInterface
   *   The UnitType entity.
   */
  public function getUnitType();

  /**
   * Sets the entity's UnitType entity.
   *
   * @param \Drupal\bat_unit\UnitTypeInterface $property
   *   The UnitType entity.
   *
   * @return $this
   */
  public function setUnitType(UnitTypeInterface $property);

  /**
   * Returns the entity's UnitType ID.
   *
   * @return int|null
   *   The UnitType bat ID, or NULL in case the UnitType ID field has not been set on
   *   the entity.
   */
  public function getUnitTypeId();

  /**
   * Sets the entity's UnitType ID.
   *
   * @param int $utid
   *   The UnitType entity id.
   *
   * @return $this
   */
  public function setUnitTypeId($utid);

}

Members

Namesort descending Modifiers Type Description Overrides
EntityUnitTypeInterface::getUnitType public function Returns the entity's UnitType entity. 1
EntityUnitTypeInterface::getUnitTypeId public function Returns the entity's UnitType ID. 1
EntityUnitTypeInterface::setUnitType public function Sets the entity's UnitType entity. 1
EntityUnitTypeInterface::setUnitTypeId public function Sets the entity's UnitType ID. 1