protected modifyMinutes ( integer $amount, boolean $invert = false ) : ExpressiveDate | ||
$amount | integer | |
$invert | boolean | |
return | ExpressiveDate |
protected function modifyMinutes($amount, $invert = false)
{
if ($this->isFloat($amount)) {
return $this->modifySeconds($amount * 60, $invert);
}
$interval = new DateInterval("PT{$amount}M");
$this->modifyFromInterval($interval, $invert);
return $this;
}