src/LocalDateTime.php
public function withMinute(int $minute) : LocalDateTime
    {
        $time = $this->time->withMinute($minute);

        if ($time === $this->time) {
            return $this;
        }

        return new LocalDateTime($this->date, $time);
    }
public function withMinute(int $minute) : LocalDateTime
    {
        $time = $this->time->withMinute($minute);

        if ($time === $this->time) {
            return $this;
        }

        return new LocalDateTime($this->date, $time);
    }
public function withMinute ( int $ minute ) : LocalDateTime { $ time = $ this -> time -> withMinute ( $ minute ) ; if ( $ time === $ this -> time ) { return $ this ; } return new LocalDateTime ( $ this -> date , $ time ) ; }
Returns a copy of this LocalDateTime with the minute-of-hour altered.

@param int $minute

@return LocalDateTime

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