<?php
namespace App\Utils\Calendar; class Calendar { protected $eventsList = []; public function addEvent(\App\Utils\Calendar\Event $event) { $this->eventsList[] = $event; return $this; } public function getEventsList() { return $this->eventsList; } public function getNumberOfEvents() { return count($this->eventsList); } }