for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace CL\DateUtils;
use DateTime;
/**
* Force week days.
*
* @author Ivan Kerin <[email protected]>
* @copyright 2015, Clippings Ltd.
* @license http://spdx.org/licenses/BSD-3-Clause
*/
class WeekDaysSpan extends DaysSpan
{
public function __construct(WeekDays $from, WeekDays $to)
parent::__construct($from, $to);
}
* @return string
public function humanize()
if ($this->getFrom()->getDays() == $this->getTo()->getDays()) {
return $this->getFrom()->getDays().' week days';
return $this->getFrom()->getDays().' - '.$this->getTo()->getDays().' week days';