class-wpml-tm-jobs-date-range.php
892 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
<?php
class WPML_TM_Jobs_Date_Range {
/** @var DateTime|null */
private $begin;
/** @var DateTime|null */
private $end;
/**
* Specify how we should treat date values which are NULL
*
* @var bool
*/
private $include_null_date;
/**
* @param DateTime|null $begin
* @param DateTime|null $end
* @param bool $include_null_date
*/
public function __construct( DateTime $begin = null, DateTime $end = null, $include_null_date = false ) {
$this->begin = $begin;
$this->end = $end;
$this->include_null_date = (bool) $include_null_date;
}
/**
* @return DateTime|null
*/
public function get_begin() {
return $this->begin;
}
/**
* @return DateTime|null
*/
public function get_end() {
return $this->end;
}
/**
* @return bool
*/
public function is_include_null_date() {
return $this->include_null_date;
}
}