From 4ce65d59ca91871cfd126497158200a818720bce Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sat, 13 Apr 2024 13:30:08 +0200 Subject: Adding upstream version 0.13.1. Signed-off-by: Daniel Baumann --- .../Recurr/Transformer/ArrayTransformerConfig.php | 65 ++++++++++++++++++++++ 1 file changed, 65 insertions(+) create mode 100644 vendor/simshaun/recurr/src/Recurr/Transformer/ArrayTransformerConfig.php (limited to 'vendor/simshaun/recurr/src/Recurr/Transformer/ArrayTransformerConfig.php') diff --git a/vendor/simshaun/recurr/src/Recurr/Transformer/ArrayTransformerConfig.php b/vendor/simshaun/recurr/src/Recurr/Transformer/ArrayTransformerConfig.php new file mode 100644 index 0000000..68350b0 --- /dev/null +++ b/vendor/simshaun/recurr/src/Recurr/Transformer/ArrayTransformerConfig.php @@ -0,0 +1,65 @@ +virtualLimit = (int) $virtualLimit; + + return $this; + } + + /** + * Get the virtual limit imposed upon infinitely recurring events. + * + * @return int + */ + public function getVirtualLimit() + { + return $this->virtualLimit; + } + + /** + * By default, January 30 + 1 month results in March 30 because February doesn't have 30 days. + * + * Enabling this fix tells Recurr that +1 month means "last day of next month". + */ + public function enableLastDayOfMonthFix() + { + $this->lastDayOfMonthFix = true; + } + + public function disableLastDayOfMonthFix() + { + $this->lastDayOfMonthFix = false; + } + + /** + * @return boolean + */ + public function isLastDayOfMonthFixEnabled() + { + return $this->lastDayOfMonthFix; + } +} -- cgit v1.2.3