. * * The interactive user interfaces in modified source and object code versions * of this program must display Appropriate Legal Notices, as required under * Section 5 of the GNU Affero General Public License version 3. * * In accordance with Section 7(b) of the GNU Affero General Public License version 3, * these Appropriate Legal Notices must retain the display of the "EspoCRM" word. ************************************************************************/ namespace Espo\Tools\WorkingTime\Calendar; use Espo\Core\Field\Date; class WorkingDate implements HavingRanges { private Date $date; /** * @var TimeRange[] */ private array $ranges; /** * @param TimeRange[] $ranges */ public function __construct(Date $date, array $ranges = []) { $this->date = $date; $this->ranges = $ranges; } public function getDate(): Date { return $this->date; } /** * @return TimeRange[] */ public function getRanges(): array { return $this->ranges; } }