You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the Event.php class there are some public variables of the class and some public methods such as getExpression(), getId() which are very useful if you integrate the class and want to have details on the task you want to analyze.
Unfortunately there is no way to determine if the task has a lifetime configured by "from", "to" or "between" method.
Could be useful to have some getters for "from" and "to" configurations or have public variables to read that.
Theoretically the change could be quite simple.
You can add the variable "from" and "to" to the top of Event.php file with something like that:
/**
* Lifetime from.
*
* @var \DateTime|string
*/
public $from;
/**
* Lifetime to.
*
* @var \DateTime|string
*/
public $to;
and then modify class method from and to at line 448 and 460 with something like that:
/**
* Check if event should be on.
*
* @param string $datetime
*
* @return self
*/
public function from($datetime)
{
$this->from = $datetime;
return $this->skip(fn () => $this->notYet($datetime));
}
/**
* Check if event should be off.
*
* @param string $datetime
*
* @return self
*/
public function to($datetime)
{
$this->to = $datetime;
return $this->skip(fn () => $this->past($datetime));
}
The text was updated successfully, but these errors were encountered:
In the Event.php class there are some public variables of the class and some public methods such as getExpression(), getId() which are very useful if you integrate the class and want to have details on the task you want to analyze.
Unfortunately there is no way to determine if the task has a lifetime configured by "from", "to" or "between" method.
Could be useful to have some getters for "from" and "to" configurations or have public variables to read that.
Theoretically the change could be quite simple.
You can add the variable "from" and "to" to the top of Event.php file with something like that:
and then modify class method from and to at line 448 and 460 with something like that:
The text was updated successfully, but these errors were encountered: