DateRangeValue.php in Search API Solr 8.2
Same filename and directory in other branches
File
src/Plugin/search_api/data_type/value/DateRangeValue.phpView source
<?php
namespace Drupal\search_api_solr\Plugin\search_api\data_type\value;
/**
* Represents a single date range value.
*/
class DateRangeValue implements DateRangeValueInterface {
/**
* The start date.
*
* @var string
*/
protected $start;
/**
* The end date.
*
* @var string
*/
protected $end;
/**
* Constructs a DateRangeValue object.
*
* @param $start
* @param $end
*/
public function __construct($start, $end) {
$this->start = $start;
$this->end = $end;
}
/**
* {@inheritdoc}
*/
public function getStart() {
return $this->start;
}
/**
* {@inheritdoc}
*/
public function getEnd() {
return $this->end;
}
}
Classes
Name | Description |
---|---|
DateRangeValue | Represents a single date range value. |