src/LocalTime.php
public function withMinute(int $minute) : LocalTime
    {
        if ($minute === $this->minute) {
            return $this;
        }

        Field\MinuteOfHour::check($minute);

        return new LocalTime($this->hour, $minute, $this->second, $this->nano);
    }
public function withMinute(int $minute) : LocalTime
    {
        if ($minute === $this->minute) {
            return $this;
        }

        Field\MinuteOfHour::check($minute);

        return new LocalTime($this->hour, $minute, $this->second, $this->nano);
    }
public function withMinute ( int $ minute ) : LocalTime { if ( $ minute === $ this -> minute ) { return $ this ; } Field \ MinuteOfHour :: check ( $ minute ) ; return new LocalTime ( $ this -> hour , $ minute , $ this -> second , $ this -> nano ) ; }
Returns a copy of this LocalTime with the minute-of-hour value altered.

@param int $minute The new minute-of-hour.

@return LocalTime

@throws DateTimeException If the minute-of-hour if not valid.
Returns a copy of this LocalTime with the minute - of - hour value altered .