You are here

public function ActiveHoursDates::__construct in SMS Framework 2.x

Same name and namespace in other branches
  1. 8 modules/sms_user/src/ActiveHoursDates.php \Drupal\sms_user\ActiveHoursDates::__construct()
  2. 2.1.x modules/sms_user/src/ActiveHoursDates.php \Drupal\sms_user\ActiveHoursDates::__construct()

Construct a new ActiveHoursDates object.

Parameters

\Drupal\Core\Datetime\DrupalDateTime $start: The start date.

\Drupal\Core\Datetime\DrupalDateTime $end: The end date.

File

modules/sms_user/src/ActiveHoursDates.php, line 38

Class

ActiveHoursDates
Define a start and end date container for DrupalDateTime.

Namespace

Drupal\sms_user

Code

public function __construct(DrupalDateTime $start, DrupalDateTime $end) {
  $this->start = $start;
  $this->end = $end;
}