/** * @return integer */ public function getHour() { return $this->localDateTime->getHour(); }
/** * @param integer $y The expected year. * @param integer $m The expected month. * @param integer $d The expected day. * @param integer $h The expected hour. * @param integer $i The expected minute. * @param integer $s The expected second. * @param integer $n The expected nano-of-second. * @param LocalDateTime $dateTime The local date-time to test. */ protected function assertLocalDateTimeIs($y, $m, $d, $h, $i, $s, $n, LocalDateTime $dateTime) { $this->compare([$y, $m, $d, $h, $i, $s, $n], [$dateTime->getYear(), $dateTime->getMonth(), $dateTime->getDay(), $dateTime->getHour(), $dateTime->getMinute(), $dateTime->getSecond(), $dateTime->getNano()]); }