public function setHours(int $hours): void
    {
        $this->timeElementsAreValid($hours, $this->minutes, $this->seconds);

        $this->hours = $hours;
    }
public function setHours(int $hours): void
    {
        $this->timeElementsAreValid($hours, $this->minutes, $this->seconds);

        $this->hours = $hours;
    }
public function setHours ( int $ hours ) : void { $ this -> timeElementsAreValid ( $ hours , $ this -> minutes , $ this -> seconds ) ; $ this -> hours = $ hours ; }
Set the hours.

@param integer $hours The hours.
Set the hours .