diff --git a/src/Types/Generator.php b/src/Types/Generator.php index ea276be..ff1c07a 100644 --- a/src/Types/Generator.php +++ b/src/Types/Generator.php @@ -42,6 +42,7 @@ protected function getMethodsDefinitions($boot, $source) $methods = ''; $source = str_replace('\\', '/', realpath($source)); $sourceLength = strlen($source); + $files = array(); foreach ($this->getMethods($boot) as $name => $closure) { try { @@ -50,17 +51,57 @@ protected function getMethodsDefinitions($boot, $source) continue; } - $file = str_replace('\\', '/', $function->getFileName()); + $file = $function->getFileName(); + + if (!isset($files[$file])) { + $files[$file] = file($file); + } + + $lines = $files[$file]; + $file = str_replace('\\', '/', $file); if (substr($file, 0, $sourceLength + 1) !== "$source/") { continue; } $file = substr($file, $sourceLength + 1); - $parameters = implode(', ', array_map(array($this, 'dumpParameter'), $function->getParameters())); $methodDocBlock = trim($function->getDocComment() ?: ''); + $length = $function->getStartLine() - 1; + $code = array_slice($lines, 0, $length); $className = '\\'.str_replace('/', '\\', substr($file, 0, -4)); + + for ($i = $length - 1; $i >= 0; $i--) { + if (preg_match('/^\s*(public|protected)\s+function\s+(\S+)\(.*\)(\s*\{)?$/', $code[$i], $match)) { + if ($name !== $match[2]) { + $method = new \ReflectionMethod($className, $name); + $methodFile = $method->getFileName(); + + if (!isset($files[$methodFile])) { + $files[$methodFile] = file($methodFile); + } + + $length = $method->getEndLine() - 1; + $lines = $files[$methodFile]; + $code = array_slice($lines, 0, $length); + + for ($i = $length - 1; $i >= 0; $i--) { + if (preg_match('/^\s*(public|protected)\s+function\s+(\S+)\(.*\)(\s*\{)?$/', $code[$i], $match)) { + break; + } + } + + $code = implode('', array_slice($code, $i)); + + if (preg_match('/(\/\*\*[\s\S]+\*\/)\s+return\s/U', $code, $match)) { + $methodDocBlock = $match[1]; + } + } + + break; + } + } + $file .= ':'.$function->getStartLine(); if ($methods !== '') { diff --git a/src/_ide_business_day_instantiated.php b/src/_ide_business_day_instantiated.php index d4d3674..6ae9880 100644 --- a/src/_ide_business_day_instantiated.php +++ b/src/_ide_business_day_instantiated.php @@ -15,27 +15,25 @@ class Carbon */ public function addBusinessDays($days = 1, $self = null) { - // Content, see src/Cmixin/BusinessDay.php:27 + // Content, see src/Cmixin/BusinessDay.php:28 } /** * @see \Cmixin\BusinessDay::addBusinessDay * - * Add a given number of business days to the current date. - * - * @param int $days + * Add one business day to the current date. * * @return \Carbon\Carbon|\Carbon\CarbonImmutable|\Carbon\CarbonInterface */ public function addBusinessDay($days = 1, $self = null) { - // Content, see src/Cmixin/BusinessDay.php:27 + // Content, see src/Cmixin/BusinessDay.php:28 } /** * @see \Cmixin\BusinessDay::subBusinessDays * - * Add a given number of business days to the current date. + * Subtract a given number of business days to the current date. * * @param int $days * @@ -43,13 +41,13 @@ public function addBusinessDay($days = 1, $self = null) */ public function subBusinessDays($days = 1, $self = null) { - // Content, see src/Cmixin/BusinessDay.php:27 + // Content, see src/Cmixin/BusinessDay.php:28 } /** * @see \Cmixin\BusinessDay::subtractBusinessDays * - * Add a given number of business days to the current date. + * Subtract a given number of business days to the current date. * * @param int $days * @@ -57,35 +55,31 @@ public function subBusinessDays($days = 1, $self = null) */ public function subtractBusinessDays($days = 1, $self = null) { - // Content, see src/Cmixin/BusinessDay.php:27 + // Content, see src/Cmixin/BusinessDay.php:28 } /** * @see \Cmixin\BusinessDay::subBusinessDay * - * Add a given number of business days to the current date. - * - * @param int $days + * Subtract one business day to the current date. * * @return \Carbon\Carbon|\Carbon\CarbonImmutable|\Carbon\CarbonInterface */ public function subBusinessDay($days = 1, $self = null) { - // Content, see src/Cmixin/BusinessDay.php:27 + // Content, see src/Cmixin/BusinessDay.php:28 } /** * @see \Cmixin\BusinessDay::subtractBusinessDay * - * Add a given number of business days to the current date. - * - * @param int $days + * Subtract one business day to the current date. * * @return \Carbon\Carbon|\Carbon\CarbonImmutable|\Carbon\CarbonInterface */ public function subtractBusinessDay($days = 1, $self = null) { - // Content, see src/Cmixin/BusinessDay.php:27 + // Content, see src/Cmixin/BusinessDay.php:28 } /** @@ -99,7 +93,7 @@ public function subtractBusinessDay($days = 1, $self = null) */ public function diffInBusinessDays($other = null, $self = null) { - // Content, see src/Cmixin/BusinessDay.php:148 + // Content, see src/Cmixin/BusinessDay.php:149 } /** @@ -111,7 +105,7 @@ public function diffInBusinessDays($other = null, $self = null) */ public function getBusinessDaysInMonth($self = null) { - // Content, see src/Cmixin/BusinessDay.php:176 + // Content, see src/Cmixin/BusinessDay.php:177 } /** @@ -123,7 +117,7 @@ public function getBusinessDaysInMonth($self = null) */ public function getMonthBusinessDays($self = null) { - // Content, see src/Cmixin/BusinessDay.php:201 + // Content, see src/Cmixin/BusinessDay.php:202 } /** @@ -165,7 +159,7 @@ public function currentOrNextBusinessDay($self = null) /** * @see \Cmixin\BusinessDay\BusinessCalendar::previousBusinessDay * - * Sets the date to the next business day (neither a weekend day nor a holiday). + * Sets the date to the previous business day (neither a weekend day nor a holiday). * * @return bool */ @@ -177,7 +171,7 @@ public function previousBusinessDay($self = null) /** * @see \Cmixin\BusinessDay\BusinessCalendar::currentOrPreviousBusinessDay * - * Sets the date to the current or next business day (neither a weekend day nor a holiday). + * Sets the date to the current or previous business day. * * @return bool */ @@ -246,10 +240,9 @@ public function getObserveHolidayMethod($holidayId = null, $observed = null, $se /** * @see \Cmixin\BusinessDay\HolidayObserver::observeHoliday * - * Set a holiday as observed/unobserved in the selected zone (can take array of holidays). + * Set a holiday as observed in the selected zone. * - * @param string|array $holidayId ID key of the holiday - * @param bool $observed observed state + * @param string $holidayId ID key of the holiday * * @return $this|null */ @@ -261,10 +254,9 @@ public function observeHoliday($holidayId = null, $observed = null, $self = null /** * @see \Cmixin\BusinessDay\HolidayObserver::unobserveHoliday * - * Set a holiday as observed/unobserved in the selected zone (can take array of holidays). + * Set a holiday as not observed in the selected zone. * - * @param string|array $holidayId ID key of the holiday - * @param bool $observed observed state + * @param string $holidayId ID key of the holiday * * @return $this|null */ @@ -276,10 +268,9 @@ public function unobserveHoliday($holidayId = null, $observed = null, $self = nu /** * @see \Cmixin\BusinessDay\HolidayObserver::observeHolidays * - * Set a holiday as observed/unobserved in the selected zone (can take array of holidays). + * Set a holiday as observed in the selected zone. * - * @param string|array $holidayId ID key of the holiday - * @param bool $observed observed state + * @param array $holidayIds ID keys of the holidays * * @return $this|null */ @@ -291,10 +282,9 @@ public function observeHolidays($holidayId = null, $observed = null, $self = nul /** * @see \Cmixin\BusinessDay\HolidayObserver::unobserveHolidays * - * Set a holiday as observed/unobserved in the selected zone (can take array of holidays). + * Set a holiday as not observed in the selected zone. * - * @param string|array $holidayId ID key of the holiday - * @param bool $observed observed state + * @param array $holidayIds ID keys of the holidays * * @return $this|null */ @@ -306,10 +296,7 @@ public function unobserveHolidays($holidayId = null, $observed = null, $self = n /** * @see \Cmixin\BusinessDay\HolidayObserver::observeAllHolidays * - * Set a holiday as observed/unobserved in the selected zone (can take array of holidays). - * - * @param string|array $holidayId ID key of the holiday - * @param bool $observed observed state + * Set all holidays as observed in the selected zone. * * @return $this|null */ @@ -321,10 +308,7 @@ public function observeAllHolidays($holidayId = null, $observed = null, $self = /** * @see \Cmixin\BusinessDay\HolidayObserver::unobserveAllHolidays * - * Set a holiday as observed/unobserved in the selected zone (can take array of holidays). - * - * @param string|array $holidayId ID key of the holiday - * @param bool $observed observed state + * Set all holidays as observed in the selected zone. * * @return $this|null */ @@ -687,27 +671,25 @@ class CarbonImmutable */ public function addBusinessDays($days = 1, $self = null) { - // Content, see src/Cmixin/BusinessDay.php:27 + // Content, see src/Cmixin/BusinessDay.php:28 } /** * @see \Cmixin\BusinessDay::addBusinessDay * - * Add a given number of business days to the current date. - * - * @param int $days + * Add one business day to the current date. * * @return \Carbon\Carbon|\Carbon\CarbonImmutable|\Carbon\CarbonInterface */ public function addBusinessDay($days = 1, $self = null) { - // Content, see src/Cmixin/BusinessDay.php:27 + // Content, see src/Cmixin/BusinessDay.php:28 } /** * @see \Cmixin\BusinessDay::subBusinessDays * - * Add a given number of business days to the current date. + * Subtract a given number of business days to the current date. * * @param int $days * @@ -715,13 +697,13 @@ public function addBusinessDay($days = 1, $self = null) */ public function subBusinessDays($days = 1, $self = null) { - // Content, see src/Cmixin/BusinessDay.php:27 + // Content, see src/Cmixin/BusinessDay.php:28 } /** * @see \Cmixin\BusinessDay::subtractBusinessDays * - * Add a given number of business days to the current date. + * Subtract a given number of business days to the current date. * * @param int $days * @@ -729,35 +711,31 @@ public function subBusinessDays($days = 1, $self = null) */ public function subtractBusinessDays($days = 1, $self = null) { - // Content, see src/Cmixin/BusinessDay.php:27 + // Content, see src/Cmixin/BusinessDay.php:28 } /** * @see \Cmixin\BusinessDay::subBusinessDay * - * Add a given number of business days to the current date. - * - * @param int $days + * Subtract one business day to the current date. * * @return \Carbon\Carbon|\Carbon\CarbonImmutable|\Carbon\CarbonInterface */ public function subBusinessDay($days = 1, $self = null) { - // Content, see src/Cmixin/BusinessDay.php:27 + // Content, see src/Cmixin/BusinessDay.php:28 } /** * @see \Cmixin\BusinessDay::subtractBusinessDay * - * Add a given number of business days to the current date. - * - * @param int $days + * Subtract one business day to the current date. * * @return \Carbon\Carbon|\Carbon\CarbonImmutable|\Carbon\CarbonInterface */ public function subtractBusinessDay($days = 1, $self = null) { - // Content, see src/Cmixin/BusinessDay.php:27 + // Content, see src/Cmixin/BusinessDay.php:28 } /** @@ -771,7 +749,7 @@ public function subtractBusinessDay($days = 1, $self = null) */ public function diffInBusinessDays($other = null, $self = null) { - // Content, see src/Cmixin/BusinessDay.php:148 + // Content, see src/Cmixin/BusinessDay.php:149 } /** @@ -783,7 +761,7 @@ public function diffInBusinessDays($other = null, $self = null) */ public function getBusinessDaysInMonth($self = null) { - // Content, see src/Cmixin/BusinessDay.php:176 + // Content, see src/Cmixin/BusinessDay.php:177 } /** @@ -795,7 +773,7 @@ public function getBusinessDaysInMonth($self = null) */ public function getMonthBusinessDays($self = null) { - // Content, see src/Cmixin/BusinessDay.php:201 + // Content, see src/Cmixin/BusinessDay.php:202 } /** @@ -837,7 +815,7 @@ public function currentOrNextBusinessDay($self = null) /** * @see \Cmixin\BusinessDay\BusinessCalendar::previousBusinessDay * - * Sets the date to the next business day (neither a weekend day nor a holiday). + * Sets the date to the previous business day (neither a weekend day nor a holiday). * * @return bool */ @@ -849,7 +827,7 @@ public function previousBusinessDay($self = null) /** * @see \Cmixin\BusinessDay\BusinessCalendar::currentOrPreviousBusinessDay * - * Sets the date to the current or next business day (neither a weekend day nor a holiday). + * Sets the date to the current or previous business day. * * @return bool */ @@ -918,10 +896,9 @@ public function getObserveHolidayMethod($holidayId = null, $observed = null, $se /** * @see \Cmixin\BusinessDay\HolidayObserver::observeHoliday * - * Set a holiday as observed/unobserved in the selected zone (can take array of holidays). + * Set a holiday as observed in the selected zone. * - * @param string|array $holidayId ID key of the holiday - * @param bool $observed observed state + * @param string $holidayId ID key of the holiday * * @return $this|null */ @@ -933,10 +910,9 @@ public function observeHoliday($holidayId = null, $observed = null, $self = null /** * @see \Cmixin\BusinessDay\HolidayObserver::unobserveHoliday * - * Set a holiday as observed/unobserved in the selected zone (can take array of holidays). + * Set a holiday as not observed in the selected zone. * - * @param string|array $holidayId ID key of the holiday - * @param bool $observed observed state + * @param string $holidayId ID key of the holiday * * @return $this|null */ @@ -948,10 +924,9 @@ public function unobserveHoliday($holidayId = null, $observed = null, $self = nu /** * @see \Cmixin\BusinessDay\HolidayObserver::observeHolidays * - * Set a holiday as observed/unobserved in the selected zone (can take array of holidays). + * Set a holiday as observed in the selected zone. * - * @param string|array $holidayId ID key of the holiday - * @param bool $observed observed state + * @param array $holidayIds ID keys of the holidays * * @return $this|null */ @@ -963,10 +938,9 @@ public function observeHolidays($holidayId = null, $observed = null, $self = nul /** * @see \Cmixin\BusinessDay\HolidayObserver::unobserveHolidays * - * Set a holiday as observed/unobserved in the selected zone (can take array of holidays). + * Set a holiday as not observed in the selected zone. * - * @param string|array $holidayId ID key of the holiday - * @param bool $observed observed state + * @param array $holidayIds ID keys of the holidays * * @return $this|null */ @@ -978,10 +952,7 @@ public function unobserveHolidays($holidayId = null, $observed = null, $self = n /** * @see \Cmixin\BusinessDay\HolidayObserver::observeAllHolidays * - * Set a holiday as observed/unobserved in the selected zone (can take array of holidays). - * - * @param string|array $holidayId ID key of the holiday - * @param bool $observed observed state + * Set all holidays as observed in the selected zone. * * @return $this|null */ @@ -993,10 +964,7 @@ public function observeAllHolidays($holidayId = null, $observed = null, $self = /** * @see \Cmixin\BusinessDay\HolidayObserver::unobserveAllHolidays * - * Set a holiday as observed/unobserved in the selected zone (can take array of holidays). - * - * @param string|array $holidayId ID key of the holiday - * @param bool $observed observed state + * Set all holidays as observed in the selected zone. * * @return $this|null */ @@ -1359,27 +1327,25 @@ class Carbon */ public function addBusinessDays($days = 1, $self = null) { - // Content, see src/Cmixin/BusinessDay.php:27 + // Content, see src/Cmixin/BusinessDay.php:28 } /** * @see \Cmixin\BusinessDay::addBusinessDay * - * Add a given number of business days to the current date. - * - * @param int $days + * Add one business day to the current date. * * @return \Carbon\Carbon|\Carbon\CarbonImmutable|\Carbon\CarbonInterface */ public function addBusinessDay($days = 1, $self = null) { - // Content, see src/Cmixin/BusinessDay.php:27 + // Content, see src/Cmixin/BusinessDay.php:28 } /** * @see \Cmixin\BusinessDay::subBusinessDays * - * Add a given number of business days to the current date. + * Subtract a given number of business days to the current date. * * @param int $days * @@ -1387,13 +1353,13 @@ public function addBusinessDay($days = 1, $self = null) */ public function subBusinessDays($days = 1, $self = null) { - // Content, see src/Cmixin/BusinessDay.php:27 + // Content, see src/Cmixin/BusinessDay.php:28 } /** * @see \Cmixin\BusinessDay::subtractBusinessDays * - * Add a given number of business days to the current date. + * Subtract a given number of business days to the current date. * * @param int $days * @@ -1401,35 +1367,31 @@ public function subBusinessDays($days = 1, $self = null) */ public function subtractBusinessDays($days = 1, $self = null) { - // Content, see src/Cmixin/BusinessDay.php:27 + // Content, see src/Cmixin/BusinessDay.php:28 } /** * @see \Cmixin\BusinessDay::subBusinessDay * - * Add a given number of business days to the current date. - * - * @param int $days + * Subtract one business day to the current date. * * @return \Carbon\Carbon|\Carbon\CarbonImmutable|\Carbon\CarbonInterface */ public function subBusinessDay($days = 1, $self = null) { - // Content, see src/Cmixin/BusinessDay.php:27 + // Content, see src/Cmixin/BusinessDay.php:28 } /** * @see \Cmixin\BusinessDay::subtractBusinessDay * - * Add a given number of business days to the current date. - * - * @param int $days + * Subtract one business day to the current date. * * @return \Carbon\Carbon|\Carbon\CarbonImmutable|\Carbon\CarbonInterface */ public function subtractBusinessDay($days = 1, $self = null) { - // Content, see src/Cmixin/BusinessDay.php:27 + // Content, see src/Cmixin/BusinessDay.php:28 } /** @@ -1443,7 +1405,7 @@ public function subtractBusinessDay($days = 1, $self = null) */ public function diffInBusinessDays($other = null, $self = null) { - // Content, see src/Cmixin/BusinessDay.php:148 + // Content, see src/Cmixin/BusinessDay.php:149 } /** @@ -1455,7 +1417,7 @@ public function diffInBusinessDays($other = null, $self = null) */ public function getBusinessDaysInMonth($self = null) { - // Content, see src/Cmixin/BusinessDay.php:176 + // Content, see src/Cmixin/BusinessDay.php:177 } /** @@ -1467,7 +1429,7 @@ public function getBusinessDaysInMonth($self = null) */ public function getMonthBusinessDays($self = null) { - // Content, see src/Cmixin/BusinessDay.php:201 + // Content, see src/Cmixin/BusinessDay.php:202 } /** @@ -1509,7 +1471,7 @@ public function currentOrNextBusinessDay($self = null) /** * @see \Cmixin\BusinessDay\BusinessCalendar::previousBusinessDay * - * Sets the date to the next business day (neither a weekend day nor a holiday). + * Sets the date to the previous business day (neither a weekend day nor a holiday). * * @return bool */ @@ -1521,7 +1483,7 @@ public function previousBusinessDay($self = null) /** * @see \Cmixin\BusinessDay\BusinessCalendar::currentOrPreviousBusinessDay * - * Sets the date to the current or next business day (neither a weekend day nor a holiday). + * Sets the date to the current or previous business day. * * @return bool */ @@ -1590,10 +1552,9 @@ public function getObserveHolidayMethod($holidayId = null, $observed = null, $se /** * @see \Cmixin\BusinessDay\HolidayObserver::observeHoliday * - * Set a holiday as observed/unobserved in the selected zone (can take array of holidays). + * Set a holiday as observed in the selected zone. * - * @param string|array $holidayId ID key of the holiday - * @param bool $observed observed state + * @param string $holidayId ID key of the holiday * * @return $this|null */ @@ -1605,10 +1566,9 @@ public function observeHoliday($holidayId = null, $observed = null, $self = null /** * @see \Cmixin\BusinessDay\HolidayObserver::unobserveHoliday * - * Set a holiday as observed/unobserved in the selected zone (can take array of holidays). + * Set a holiday as not observed in the selected zone. * - * @param string|array $holidayId ID key of the holiday - * @param bool $observed observed state + * @param string $holidayId ID key of the holiday * * @return $this|null */ @@ -1620,10 +1580,9 @@ public function unobserveHoliday($holidayId = null, $observed = null, $self = nu /** * @see \Cmixin\BusinessDay\HolidayObserver::observeHolidays * - * Set a holiday as observed/unobserved in the selected zone (can take array of holidays). + * Set a holiday as observed in the selected zone. * - * @param string|array $holidayId ID key of the holiday - * @param bool $observed observed state + * @param array $holidayIds ID keys of the holidays * * @return $this|null */ @@ -1635,10 +1594,9 @@ public function observeHolidays($holidayId = null, $observed = null, $self = nul /** * @see \Cmixin\BusinessDay\HolidayObserver::unobserveHolidays * - * Set a holiday as observed/unobserved in the selected zone (can take array of holidays). + * Set a holiday as not observed in the selected zone. * - * @param string|array $holidayId ID key of the holiday - * @param bool $observed observed state + * @param array $holidayIds ID keys of the holidays * * @return $this|null */ @@ -1650,10 +1608,7 @@ public function unobserveHolidays($holidayId = null, $observed = null, $self = n /** * @see \Cmixin\BusinessDay\HolidayObserver::observeAllHolidays * - * Set a holiday as observed/unobserved in the selected zone (can take array of holidays). - * - * @param string|array $holidayId ID key of the holiday - * @param bool $observed observed state + * Set all holidays as observed in the selected zone. * * @return $this|null */ @@ -1665,10 +1620,7 @@ public function observeAllHolidays($holidayId = null, $observed = null, $self = /** * @see \Cmixin\BusinessDay\HolidayObserver::unobserveAllHolidays * - * Set a holiday as observed/unobserved in the selected zone (can take array of holidays). - * - * @param string|array $holidayId ID key of the holiday - * @param bool $observed observed state + * Set all holidays as observed in the selected zone. * * @return $this|null */ diff --git a/src/_ide_business_day_static.php b/src/_ide_business_day_static.php index dc0306e..0913f24 100644 --- a/src/_ide_business_day_static.php +++ b/src/_ide_business_day_static.php @@ -15,27 +15,25 @@ class Carbon */ public static function addBusinessDays($days = 1, $self = null) { - // Content, see src/Cmixin/BusinessDay.php:27 + // Content, see src/Cmixin/BusinessDay.php:28 } /** * @see \Cmixin\BusinessDay::addBusinessDay * - * Add a given number of business days to the current date. - * - * @param int $days + * Add one business day to the current date. * * @return \Carbon\Carbon|\Carbon\CarbonImmutable|\Carbon\CarbonInterface */ public static function addBusinessDay($days = 1, $self = null) { - // Content, see src/Cmixin/BusinessDay.php:27 + // Content, see src/Cmixin/BusinessDay.php:28 } /** * @see \Cmixin\BusinessDay::subBusinessDays * - * Add a given number of business days to the current date. + * Subtract a given number of business days to the current date. * * @param int $days * @@ -43,13 +41,13 @@ public static function addBusinessDay($days = 1, $self = null) */ public static function subBusinessDays($days = 1, $self = null) { - // Content, see src/Cmixin/BusinessDay.php:27 + // Content, see src/Cmixin/BusinessDay.php:28 } /** * @see \Cmixin\BusinessDay::subtractBusinessDays * - * Add a given number of business days to the current date. + * Subtract a given number of business days to the current date. * * @param int $days * @@ -57,35 +55,31 @@ public static function subBusinessDays($days = 1, $self = null) */ public static function subtractBusinessDays($days = 1, $self = null) { - // Content, see src/Cmixin/BusinessDay.php:27 + // Content, see src/Cmixin/BusinessDay.php:28 } /** * @see \Cmixin\BusinessDay::subBusinessDay * - * Add a given number of business days to the current date. - * - * @param int $days + * Subtract one business day to the current date. * * @return \Carbon\Carbon|\Carbon\CarbonImmutable|\Carbon\CarbonInterface */ public static function subBusinessDay($days = 1, $self = null) { - // Content, see src/Cmixin/BusinessDay.php:27 + // Content, see src/Cmixin/BusinessDay.php:28 } /** * @see \Cmixin\BusinessDay::subtractBusinessDay * - * Add a given number of business days to the current date. - * - * @param int $days + * Subtract one business day to the current date. * * @return \Carbon\Carbon|\Carbon\CarbonImmutable|\Carbon\CarbonInterface */ public static function subtractBusinessDay($days = 1, $self = null) { - // Content, see src/Cmixin/BusinessDay.php:27 + // Content, see src/Cmixin/BusinessDay.php:28 } /** @@ -99,7 +93,7 @@ public static function subtractBusinessDay($days = 1, $self = null) */ public static function diffInBusinessDays($other = null, $self = null) { - // Content, see src/Cmixin/BusinessDay.php:148 + // Content, see src/Cmixin/BusinessDay.php:149 } /** @@ -111,7 +105,7 @@ public static function diffInBusinessDays($other = null, $self = null) */ public static function getBusinessDaysInMonth($self = null) { - // Content, see src/Cmixin/BusinessDay.php:176 + // Content, see src/Cmixin/BusinessDay.php:177 } /** @@ -123,7 +117,7 @@ public static function getBusinessDaysInMonth($self = null) */ public static function getMonthBusinessDays($self = null) { - // Content, see src/Cmixin/BusinessDay.php:201 + // Content, see src/Cmixin/BusinessDay.php:202 } /** @@ -165,7 +159,7 @@ public static function currentOrNextBusinessDay($self = null) /** * @see \Cmixin\BusinessDay\BusinessCalendar::previousBusinessDay * - * Sets the date to the next business day (neither a weekend day nor a holiday). + * Sets the date to the previous business day (neither a weekend day nor a holiday). * * @return bool */ @@ -177,7 +171,7 @@ public static function previousBusinessDay($self = null) /** * @see \Cmixin\BusinessDay\BusinessCalendar::currentOrPreviousBusinessDay * - * Sets the date to the current or next business day (neither a weekend day nor a holiday). + * Sets the date to the current or previous business day. * * @return bool */ @@ -246,10 +240,9 @@ public static function getObserveHolidayMethod($holidayId = null, $observed = nu /** * @see \Cmixin\BusinessDay\HolidayObserver::observeHoliday * - * Set a holiday as observed/unobserved in the selected zone (can take array of holidays). + * Set a holiday as observed in the selected zone. * - * @param string|array $holidayId ID key of the holiday - * @param bool $observed observed state + * @param string $holidayId ID key of the holiday * * @return $this|null */ @@ -261,10 +254,9 @@ public static function observeHoliday($holidayId = null, $observed = null, $self /** * @see \Cmixin\BusinessDay\HolidayObserver::unobserveHoliday * - * Set a holiday as observed/unobserved in the selected zone (can take array of holidays). + * Set a holiday as not observed in the selected zone. * - * @param string|array $holidayId ID key of the holiday - * @param bool $observed observed state + * @param string $holidayId ID key of the holiday * * @return $this|null */ @@ -276,10 +268,9 @@ public static function unobserveHoliday($holidayId = null, $observed = null, $se /** * @see \Cmixin\BusinessDay\HolidayObserver::observeHolidays * - * Set a holiday as observed/unobserved in the selected zone (can take array of holidays). + * Set a holiday as observed in the selected zone. * - * @param string|array $holidayId ID key of the holiday - * @param bool $observed observed state + * @param array $holidayIds ID keys of the holidays * * @return $this|null */ @@ -291,10 +282,9 @@ public static function observeHolidays($holidayId = null, $observed = null, $sel /** * @see \Cmixin\BusinessDay\HolidayObserver::unobserveHolidays * - * Set a holiday as observed/unobserved in the selected zone (can take array of holidays). + * Set a holiday as not observed in the selected zone. * - * @param string|array $holidayId ID key of the holiday - * @param bool $observed observed state + * @param array $holidayIds ID keys of the holidays * * @return $this|null */ @@ -306,10 +296,7 @@ public static function unobserveHolidays($holidayId = null, $observed = null, $s /** * @see \Cmixin\BusinessDay\HolidayObserver::observeAllHolidays * - * Set a holiday as observed/unobserved in the selected zone (can take array of holidays). - * - * @param string|array $holidayId ID key of the holiday - * @param bool $observed observed state + * Set all holidays as observed in the selected zone. * * @return $this|null */ @@ -321,10 +308,7 @@ public static function observeAllHolidays($holidayId = null, $observed = null, $ /** * @see \Cmixin\BusinessDay\HolidayObserver::unobserveAllHolidays * - * Set a holiday as observed/unobserved in the selected zone (can take array of holidays). - * - * @param string|array $holidayId ID key of the holiday - * @param bool $observed observed state + * Set all holidays as observed in the selected zone. * * @return $this|null */ @@ -687,27 +671,25 @@ class CarbonImmutable */ public static function addBusinessDays($days = 1, $self = null) { - // Content, see src/Cmixin/BusinessDay.php:27 + // Content, see src/Cmixin/BusinessDay.php:28 } /** * @see \Cmixin\BusinessDay::addBusinessDay * - * Add a given number of business days to the current date. - * - * @param int $days + * Add one business day to the current date. * * @return \Carbon\Carbon|\Carbon\CarbonImmutable|\Carbon\CarbonInterface */ public static function addBusinessDay($days = 1, $self = null) { - // Content, see src/Cmixin/BusinessDay.php:27 + // Content, see src/Cmixin/BusinessDay.php:28 } /** * @see \Cmixin\BusinessDay::subBusinessDays * - * Add a given number of business days to the current date. + * Subtract a given number of business days to the current date. * * @param int $days * @@ -715,13 +697,13 @@ public static function addBusinessDay($days = 1, $self = null) */ public static function subBusinessDays($days = 1, $self = null) { - // Content, see src/Cmixin/BusinessDay.php:27 + // Content, see src/Cmixin/BusinessDay.php:28 } /** * @see \Cmixin\BusinessDay::subtractBusinessDays * - * Add a given number of business days to the current date. + * Subtract a given number of business days to the current date. * * @param int $days * @@ -729,35 +711,31 @@ public static function subBusinessDays($days = 1, $self = null) */ public static function subtractBusinessDays($days = 1, $self = null) { - // Content, see src/Cmixin/BusinessDay.php:27 + // Content, see src/Cmixin/BusinessDay.php:28 } /** * @see \Cmixin\BusinessDay::subBusinessDay * - * Add a given number of business days to the current date. - * - * @param int $days + * Subtract one business day to the current date. * * @return \Carbon\Carbon|\Carbon\CarbonImmutable|\Carbon\CarbonInterface */ public static function subBusinessDay($days = 1, $self = null) { - // Content, see src/Cmixin/BusinessDay.php:27 + // Content, see src/Cmixin/BusinessDay.php:28 } /** * @see \Cmixin\BusinessDay::subtractBusinessDay * - * Add a given number of business days to the current date. - * - * @param int $days + * Subtract one business day to the current date. * * @return \Carbon\Carbon|\Carbon\CarbonImmutable|\Carbon\CarbonInterface */ public static function subtractBusinessDay($days = 1, $self = null) { - // Content, see src/Cmixin/BusinessDay.php:27 + // Content, see src/Cmixin/BusinessDay.php:28 } /** @@ -771,7 +749,7 @@ public static function subtractBusinessDay($days = 1, $self = null) */ public static function diffInBusinessDays($other = null, $self = null) { - // Content, see src/Cmixin/BusinessDay.php:148 + // Content, see src/Cmixin/BusinessDay.php:149 } /** @@ -783,7 +761,7 @@ public static function diffInBusinessDays($other = null, $self = null) */ public static function getBusinessDaysInMonth($self = null) { - // Content, see src/Cmixin/BusinessDay.php:176 + // Content, see src/Cmixin/BusinessDay.php:177 } /** @@ -795,7 +773,7 @@ public static function getBusinessDaysInMonth($self = null) */ public static function getMonthBusinessDays($self = null) { - // Content, see src/Cmixin/BusinessDay.php:201 + // Content, see src/Cmixin/BusinessDay.php:202 } /** @@ -837,7 +815,7 @@ public static function currentOrNextBusinessDay($self = null) /** * @see \Cmixin\BusinessDay\BusinessCalendar::previousBusinessDay * - * Sets the date to the next business day (neither a weekend day nor a holiday). + * Sets the date to the previous business day (neither a weekend day nor a holiday). * * @return bool */ @@ -849,7 +827,7 @@ public static function previousBusinessDay($self = null) /** * @see \Cmixin\BusinessDay\BusinessCalendar::currentOrPreviousBusinessDay * - * Sets the date to the current or next business day (neither a weekend day nor a holiday). + * Sets the date to the current or previous business day. * * @return bool */ @@ -918,10 +896,9 @@ public static function getObserveHolidayMethod($holidayId = null, $observed = nu /** * @see \Cmixin\BusinessDay\HolidayObserver::observeHoliday * - * Set a holiday as observed/unobserved in the selected zone (can take array of holidays). + * Set a holiday as observed in the selected zone. * - * @param string|array $holidayId ID key of the holiday - * @param bool $observed observed state + * @param string $holidayId ID key of the holiday * * @return $this|null */ @@ -933,10 +910,9 @@ public static function observeHoliday($holidayId = null, $observed = null, $self /** * @see \Cmixin\BusinessDay\HolidayObserver::unobserveHoliday * - * Set a holiday as observed/unobserved in the selected zone (can take array of holidays). + * Set a holiday as not observed in the selected zone. * - * @param string|array $holidayId ID key of the holiday - * @param bool $observed observed state + * @param string $holidayId ID key of the holiday * * @return $this|null */ @@ -948,10 +924,9 @@ public static function unobserveHoliday($holidayId = null, $observed = null, $se /** * @see \Cmixin\BusinessDay\HolidayObserver::observeHolidays * - * Set a holiday as observed/unobserved in the selected zone (can take array of holidays). + * Set a holiday as observed in the selected zone. * - * @param string|array $holidayId ID key of the holiday - * @param bool $observed observed state + * @param array $holidayIds ID keys of the holidays * * @return $this|null */ @@ -963,10 +938,9 @@ public static function observeHolidays($holidayId = null, $observed = null, $sel /** * @see \Cmixin\BusinessDay\HolidayObserver::unobserveHolidays * - * Set a holiday as observed/unobserved in the selected zone (can take array of holidays). + * Set a holiday as not observed in the selected zone. * - * @param string|array $holidayId ID key of the holiday - * @param bool $observed observed state + * @param array $holidayIds ID keys of the holidays * * @return $this|null */ @@ -978,10 +952,7 @@ public static function unobserveHolidays($holidayId = null, $observed = null, $s /** * @see \Cmixin\BusinessDay\HolidayObserver::observeAllHolidays * - * Set a holiday as observed/unobserved in the selected zone (can take array of holidays). - * - * @param string|array $holidayId ID key of the holiday - * @param bool $observed observed state + * Set all holidays as observed in the selected zone. * * @return $this|null */ @@ -993,10 +964,7 @@ public static function observeAllHolidays($holidayId = null, $observed = null, $ /** * @see \Cmixin\BusinessDay\HolidayObserver::unobserveAllHolidays * - * Set a holiday as observed/unobserved in the selected zone (can take array of holidays). - * - * @param string|array $holidayId ID key of the holiday - * @param bool $observed observed state + * Set all holidays as observed in the selected zone. * * @return $this|null */ @@ -1359,27 +1327,25 @@ class Carbon */ public static function addBusinessDays($days = 1, $self = null) { - // Content, see src/Cmixin/BusinessDay.php:27 + // Content, see src/Cmixin/BusinessDay.php:28 } /** * @see \Cmixin\BusinessDay::addBusinessDay * - * Add a given number of business days to the current date. - * - * @param int $days + * Add one business day to the current date. * * @return \Carbon\Carbon|\Carbon\CarbonImmutable|\Carbon\CarbonInterface */ public static function addBusinessDay($days = 1, $self = null) { - // Content, see src/Cmixin/BusinessDay.php:27 + // Content, see src/Cmixin/BusinessDay.php:28 } /** * @see \Cmixin\BusinessDay::subBusinessDays * - * Add a given number of business days to the current date. + * Subtract a given number of business days to the current date. * * @param int $days * @@ -1387,13 +1353,13 @@ public static function addBusinessDay($days = 1, $self = null) */ public static function subBusinessDays($days = 1, $self = null) { - // Content, see src/Cmixin/BusinessDay.php:27 + // Content, see src/Cmixin/BusinessDay.php:28 } /** * @see \Cmixin\BusinessDay::subtractBusinessDays * - * Add a given number of business days to the current date. + * Subtract a given number of business days to the current date. * * @param int $days * @@ -1401,35 +1367,31 @@ public static function subBusinessDays($days = 1, $self = null) */ public static function subtractBusinessDays($days = 1, $self = null) { - // Content, see src/Cmixin/BusinessDay.php:27 + // Content, see src/Cmixin/BusinessDay.php:28 } /** * @see \Cmixin\BusinessDay::subBusinessDay * - * Add a given number of business days to the current date. - * - * @param int $days + * Subtract one business day to the current date. * * @return \Carbon\Carbon|\Carbon\CarbonImmutable|\Carbon\CarbonInterface */ public static function subBusinessDay($days = 1, $self = null) { - // Content, see src/Cmixin/BusinessDay.php:27 + // Content, see src/Cmixin/BusinessDay.php:28 } /** * @see \Cmixin\BusinessDay::subtractBusinessDay * - * Add a given number of business days to the current date. - * - * @param int $days + * Subtract one business day to the current date. * * @return \Carbon\Carbon|\Carbon\CarbonImmutable|\Carbon\CarbonInterface */ public static function subtractBusinessDay($days = 1, $self = null) { - // Content, see src/Cmixin/BusinessDay.php:27 + // Content, see src/Cmixin/BusinessDay.php:28 } /** @@ -1443,7 +1405,7 @@ public static function subtractBusinessDay($days = 1, $self = null) */ public static function diffInBusinessDays($other = null, $self = null) { - // Content, see src/Cmixin/BusinessDay.php:148 + // Content, see src/Cmixin/BusinessDay.php:149 } /** @@ -1455,7 +1417,7 @@ public static function diffInBusinessDays($other = null, $self = null) */ public static function getBusinessDaysInMonth($self = null) { - // Content, see src/Cmixin/BusinessDay.php:176 + // Content, see src/Cmixin/BusinessDay.php:177 } /** @@ -1467,7 +1429,7 @@ public static function getBusinessDaysInMonth($self = null) */ public static function getMonthBusinessDays($self = null) { - // Content, see src/Cmixin/BusinessDay.php:201 + // Content, see src/Cmixin/BusinessDay.php:202 } /** @@ -1509,7 +1471,7 @@ public static function currentOrNextBusinessDay($self = null) /** * @see \Cmixin\BusinessDay\BusinessCalendar::previousBusinessDay * - * Sets the date to the next business day (neither a weekend day nor a holiday). + * Sets the date to the previous business day (neither a weekend day nor a holiday). * * @return bool */ @@ -1521,7 +1483,7 @@ public static function previousBusinessDay($self = null) /** * @see \Cmixin\BusinessDay\BusinessCalendar::currentOrPreviousBusinessDay * - * Sets the date to the current or next business day (neither a weekend day nor a holiday). + * Sets the date to the current or previous business day. * * @return bool */ @@ -1590,10 +1552,9 @@ public static function getObserveHolidayMethod($holidayId = null, $observed = nu /** * @see \Cmixin\BusinessDay\HolidayObserver::observeHoliday * - * Set a holiday as observed/unobserved in the selected zone (can take array of holidays). + * Set a holiday as observed in the selected zone. * - * @param string|array $holidayId ID key of the holiday - * @param bool $observed observed state + * @param string $holidayId ID key of the holiday * * @return $this|null */ @@ -1605,10 +1566,9 @@ public static function observeHoliday($holidayId = null, $observed = null, $self /** * @see \Cmixin\BusinessDay\HolidayObserver::unobserveHoliday * - * Set a holiday as observed/unobserved in the selected zone (can take array of holidays). + * Set a holiday as not observed in the selected zone. * - * @param string|array $holidayId ID key of the holiday - * @param bool $observed observed state + * @param string $holidayId ID key of the holiday * * @return $this|null */ @@ -1620,10 +1580,9 @@ public static function unobserveHoliday($holidayId = null, $observed = null, $se /** * @see \Cmixin\BusinessDay\HolidayObserver::observeHolidays * - * Set a holiday as observed/unobserved in the selected zone (can take array of holidays). + * Set a holiday as observed in the selected zone. * - * @param string|array $holidayId ID key of the holiday - * @param bool $observed observed state + * @param array $holidayIds ID keys of the holidays * * @return $this|null */ @@ -1635,10 +1594,9 @@ public static function observeHolidays($holidayId = null, $observed = null, $sel /** * @see \Cmixin\BusinessDay\HolidayObserver::unobserveHolidays * - * Set a holiday as observed/unobserved in the selected zone (can take array of holidays). + * Set a holiday as not observed in the selected zone. * - * @param string|array $holidayId ID key of the holiday - * @param bool $observed observed state + * @param array $holidayIds ID keys of the holidays * * @return $this|null */ @@ -1650,10 +1608,7 @@ public static function unobserveHolidays($holidayId = null, $observed = null, $s /** * @see \Cmixin\BusinessDay\HolidayObserver::observeAllHolidays * - * Set a holiday as observed/unobserved in the selected zone (can take array of holidays). - * - * @param string|array $holidayId ID key of the holiday - * @param bool $observed observed state + * Set all holidays as observed in the selected zone. * * @return $this|null */ @@ -1665,10 +1620,7 @@ public static function observeAllHolidays($holidayId = null, $observed = null, $ /** * @see \Cmixin\BusinessDay\HolidayObserver::unobserveAllHolidays * - * Set a holiday as observed/unobserved in the selected zone (can take array of holidays). - * - * @param string|array $holidayId ID key of the holiday - * @param bool $observed observed state + * Set all holidays as observed in the selected zone. * * @return $this|null */