Exemplo n.º 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();
 }
Exemplo n.º 2
0
 /**
  * AbstractRepeat constructor.
  *
  * @param AbstractEvent $event
  */
 public function __construct(AbstractEvent $event)
 {
     parent::__construct($event);
     $this->interval = DateInterval::createFromDateString('1 day');
     $this->summary = 'Daily';
 }