bat-8.x-1.x-dev/modules/bat_roomify/src/Unit/UnitInterface.php
modules/bat_roomify/src/Unit/UnitInterface.php
<?php
/**
* @file
* Interface UnitInterface
*/
namespace Drupal\bat_roomify\Unit;
/**
* The basic BAT unit interface.
*/
interface UnitInterface {
/**
* Returns the unit id.
* @return int
*/
public function getUnitId();
/**
* Sets the unit id.
* @param $unit_id
*/
public function setUnitId($unit_id);
/**
* Return the default value this unit should have. We do not define here the
* event type - this should be deal by whoever is instantiating the unit.
* @return int
*/
public function getDefaultValue();
/**
* Sets the default value.
*
* @param $default_value
*/
public function setDefaultValue($default_value);
/**
* @param $constraints
*/
public function setConstraints($constraints);
/**
* @return
*/
public function getConstraints();
}
