Example #1
0
 /**
  * AbstractRepeat constructor.
  *
  * @param AbstractEvent $event
  */
 public function __construct(AbstractEvent $event)
 {
     parent::__construct($event);
     $this->interval = DateInterval::createFromDateString('1 week');
     $this->days = [new Day($this->from->format('l'))];
     $this->summary = 'Weekly';
     $this->addOnSummary();
 }
Example #2
0
 /**
  * AbstractRepeat constructor.
  *
  * @param AbstractEvent $event
  */
 public function __construct(AbstractEvent $event)
 {
     parent::__construct($event);
     $this->interval = DateInterval::createFromDateString('1 day');
     $this->summary = 'Daily';
 }