1 | <?php |
||
15 | abstract class DateRuleAbstract extends RuleAbstract |
||
16 | { |
||
17 | /** |
||
18 | * @var \FeedIo\Rule\DateTimeBuilder |
||
19 | */ |
||
20 | protected $dateTimeBuilder = null; |
||
21 | |||
22 | /** |
||
23 | * @var string |
||
24 | */ |
||
25 | protected $defaultFormat = \DateTime::RSS; |
||
26 | |||
27 | /** |
||
28 | * @param \FeedIo\Rule\DateTimeBuilder $dateTimeBuilder |
||
29 | * @return $this |
||
30 | */ |
||
31 | 13 | public function setDateTimeBuilder(DateTimeBuilder $dateTimeBuilder) |
|
37 | |||
38 | /** |
||
39 | * @return DateTimeBuilder |
||
40 | */ |
||
41 | 7 | public function getDateTimeBuilder() |
|
49 | |||
50 | /** |
||
51 | * @return string |
||
52 | */ |
||
53 | public function getDefaultFormat() |
||
54 | { |
||
55 | return $this->defaultFormat; |
||
56 | } |
||
57 | |||
58 | /** |
||
59 | * @param string $defaultFormat |
||
60 | */ |
||
61 | 11 | public function setDefaultFormat($defaultFormat) |
|
65 | } |
||
66 |