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
- interface \Drupal\bat_unit\EntityUnitTypeInterface
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_unitView 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
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
EntityUnitTypeInterface:: |
public | function | Returns the entity's UnitType entity. | 1 |
EntityUnitTypeInterface:: |
public | function | Returns the entity's UnitType ID. | 1 |
EntityUnitTypeInterface:: |
public | function | Sets the entity's UnitType entity. | 1 |
EntityUnitTypeInterface:: |
public | function | Sets the entity's UnitType ID. | 1 |