You are here

public function DateRangeValue::__construct in Search API Solr 4.x

Same name and namespace in other branches
  1. 8.3 src/Plugin/search_api/data_type/value/DateRangeValue.php \Drupal\search_api_solr\Plugin\search_api\data_type\value\DateRangeValue::__construct()
  2. 8.2 src/Plugin/search_api/data_type/value/DateRangeValue.php \Drupal\search_api_solr\Plugin\search_api\data_type\value\DateRangeValue::__construct()

Constructs a DateRangeValue object.

Parameters

string $start: The start date.

string $end: The end date.

File

src/Plugin/search_api/data_type/value/DateRangeValue.php, line 32

Class

DateRangeValue
Represents a single date range value.

Namespace

Drupal\search_api_solr\Plugin\search_api\data_type\value

Code

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