public static function fromString(string $timeString) : TimeOfDay
    {
        $parts = array_map('intval', explode(':', $timeString)) + [1 => 0, 2 => 0];
        return new self($parts[0], $parts[1], $parts[2]);
    }
public static function fromString(string $timeString) : TimeOfDay
    {
        $parts = array_map('intval', explode(':', $timeString)) + [1 => 0, 2 => 0];
        return new self($parts[0], $parts[1], $parts[2]);
    }
public static function fromString ( string $ timeString ) : TimeOfDay { $ parts = array_map ( 'intval' , explode ( ':' , $ timeString ) ) + [ 1 => 0 , 2 => 0 ] ; return new self ( $ parts [ 0 ] , $ parts [ 1 ] , $ parts [ 2 ] ) ; }
Creates a time object from the supplied 24 hour time string

Expected format: HH[:MM[:SS]]

@param string $timeString

@return TimeOfDay
Creates a time object from the supplied 24 hour time string