24) { throw new InvalidArgumentException(sprintf('%s should be in range %d-%d', '$hour', 0, 24)); } if ($minute < 0 || $minute > 59) { throw new InvalidArgumentException(sprintf('%s should be in range %d-%d', '$minute', 0, 59)); } if ($second < 0 || $second > 59) { throw new InvalidArgumentException(sprintf('%s should be in range %d-%d', '$second', 0, 59)); } $this->value = $value; } /** * Return the value from the value object * * @return string */ public function getValue() { return $this->value; } }