src/Cronner/Tasks/Parser.php
public static function parseTimes(string $annotation)
	{
		$times = NULL;
		$annotation = Strings::trim($annotation);
		if (Strings::length($annotation)) {
			if ($values = static::splitMultipleValues($annotation)) {
				$times = [];
				foreach ($values as $time) {
					$times = array_merge($times, static::parseOneTime($time));
				}
				usort($times, function ($a, $b) {
					return $a < $b ? -1 : ($a > $b ? 1 : 0);
				});
			}
		}

		return $times ?: NULL;
	}
public static function parseTimes(string $annotation)
	{
		$times = NULL;
		$annotation = Strings::trim($annotation);
		if (Strings::length($annotation)) {
			if ($values = static::splitMultipleValues($annotation)) {
				$times = [];
				foreach ($values as $time) {
					$times = array_merge($times, static::parseOneTime($time));
				}
				usort($times, function ($a, $b) {
					return $a < $b ? -1 : ($a > $b ? 1 : 0);
				});
			}
		}

		return $times ?: NULL;
	}
public static function parseTimes ( string $ annotation ) { $ times = NULL ; $ annotation = Strings :: trim ( $ annotation ) ; if ( Strings :: length ( $ annotation ) ) { if ( $ values = static :: splitMultipleValues ( $ annotation ) ) { $ times = [ ] ; foreach ( $ values as $ time ) { $ times = array_merge ( $ times , static :: parseOneTime ( $ time ) ) ; } usort ( $ times , function ( $ a , $ b ) { return $ a < $ b ? - 1 : ( $ a > $ b ? 1 : 0 ) ; } ) ; } } return $ times ? : NULL ; }
Parses allowed time ranges for cron task. If annotation is invalid
throws exception.

@param string $annotation
@return string[][]|null
@throws InvalidParameterException
Parses allowed time ranges for cron task . If annotation is invalid throws exception .