Changed carbon method naming to be consistent with Carbon itself

This commit is contained in:
Deon George 2020-02-08 17:52:13 +11:00
parent 176f680ff7
commit 96a6830e61
1 changed files with 2 additions and 2 deletions

View File

@ -34,7 +34,7 @@ class Carbon extends CarbonBase
*
* @return static
*/
public function firstOfHalf($dayOfWeek = null)
public function startOfHalf($dayOfWeek = null)
{
return $this->setDate($this->year, $this->half * static::MONTHS_PER_HALF - 5, 1)->firstOfMonth($dayOfWeek);
}
@ -49,7 +49,7 @@ class Carbon extends CarbonBase
*
* @return static
*/
public function lastOfHalf($dayOfWeek = null)
public function endOfHalf($dayOfWeek = null)
{
return $this->setDate($this->year, $this->half * static::MONTHS_PER_HALF, 1)->lastOfMonth($dayOfWeek);
}