bat-8.x-1.x-dev/modules/bat_roomify/src/Constraint/ConstraintInterface.php

modules/bat_roomify/src/Constraint/ConstraintInterface.php
<?php

/**
 * @file
 * Interface ConstraintInterface
 */

namespace Drupal\bat_roomify\Constraint;

use Drupal\bat_roomify\Calendar\CalendarResponse;

/**
 * The Constraint Interface
 */
interface ConstraintInterface {

  /**
   * Applies the Constraint to a Calendar Response.
   *
   * @param $calendar_response
   */
  public function applyConstraint(CalendarResponse &$calendar_response);

  /**
   * @param $start_date
   */
  public function setStartDate(\DateTime $start_date);

  /**
   * @return \DateTime
   */
  public function getStartDate();

  /**
   * @param $end_date
   */
  public function setEndDate(\DateTime $end_date);

  /**
   * @return \DateTime
   */
  public function getEndDate();

  /**
   * @return
   */
  public function getAffectedUnits();

  /**
   * @return
   */
  public function getUnits();

}

Главная | Обратная связь

drupal hosting | друпал хостинг | it patrol .inc