@param int $offsetSeconds The offset-seconds to check.

@return void

@throws DateTimeException If the offset-seconds is not valid.
430495
public static function check(int $offsetSeconds) : void
    {
        if ($offsetSeconds < -self::MAX_SECONDS || $offsetSeconds > self::MAX_SECONDS) {
            throw DateTimeException::fieldNotInRange(self::NAME, $offsetSeconds, -self::MAX_SECONDS, self::MAX_SECONDS);
        }
    }
619083
public function set(int $offset, Period $interval): void
    {
        $this->get($offset);
        $this->intervals[$offset] = $interval;
    }
468407
public function offsetUnset($offset)
    {
        unset($this->tokens[$offset]);
        --$this->count;
        for ($i = $offset; $i < $this->count; ++$i) {
            $this->tokens[$i] = $this->tokens[$i + 1];
        }
        unset($this->tokens[$this->count]);
    }
982938
public function setTime($hours, $minutes, $seconds)
    {
      // Validate
      self::validateTime($hours, $minutes, $seconds);
      
      // Set internal hours, minutes, seconds and microtime variables
      $this->hours   = (int)$hours;
      $this->minutes = (int)$minutes;
      $this->seconds = (int)$seconds;
      
      if(is_float($seconds))
        $this->microtime = fmod($seconds, floor($seconds));
    }
989813
public function offsetUnset($offset)
    {
        if ($this->offsetExists($offset)) {
            $method = 'set'.static::formatOffset($offset);
            $this->{$method}(null);
        }
    }
623950
public function run($maxSeconds = null)
    {
        if ($maxSeconds !== null) {
            $this->stopTimer = $this->eventLoop->addTimer($maxSeconds, function () {
                $this->stop();
            });
        }

        $this->eventLoop->run();
    }
765799
public function offsetSet($offset, $interval): void
    {
        if (null !== $offset) {
            $this->set($offset, $interval);
            return;
        }

        $this->push($interval);
    }
639815
public function offsetSet($offset, $value)
    {
        dd($value);
        if(is_null($offset)) {
            $this->{$this->index} = $value;
            $this->index++;
        } else {
            $this->$offset = $value;
        }
    }
621251
public function offsetSet($offset, $value)
    {
        if (null === $offset || $offset === $this->_count) {
            $this->insertAt($this->_count, $value);
        } else {
            $this->removeAt($offset);
            $this->insertAt($offset, $value);
        }
    }
726255
public function offsetSet($offset, $value)
    {
        if ($offset === null) {
            $this->tokens[$this->count++] = $value;
        } else {
            $this->tokens[$offset] = $value;
        }
    }
434792
public function offsetUnset($offset): void
    {
        $args = [$offset];
        $methodName = __FUNCTION__;

        $this->findAndCall($methodName, $args);
    }
988355
public function offsetExists($offset)
    {
        if (!is_int($offset) && !is_string($offset)) {
            throw new RuntimeException('Invalid array offset type: '. gettype($offset));
        }
        return array_key_exists($offset, $this->items);
    }
273987
public function offsetSet($offset, $value)
    {
        $this->loadData($offset);
        $this->set($offset, $value);
    }
949957
public function setSearchDateTimeRange(DateTimeInterface $dateTimeFrom, DateTimeInterface $dateTimeUntil): void
    {
        $this->dateTimeFrom = $dateTimeFrom;
        $this->dateTimeUntil = $dateTimeUntil;
        $this->query = $this->createSearchQuery();
    }
1045858
public function utcOffset(int $offset = null)
    {
        if (func_num_args() < 1) {
            return $this->offsetMinutes;
        }

        return $this->setTimezone(static::safeCreateDateTimeZone($offset / static::MINUTES_PER_HOUR));
    }
1069373
public function offsetExists($offset) : bool
    {
        return ( isset($this->_Container[$offset]) || ($this->_DataHandler !== null && $this->_DataHandler->selectOneEntity($offset) !== false) ) ? true : false ;
    }
1186022
public static function check(int $secondOfDay) : void
    {
        if ($secondOfDay < 0 || $secondOfDay > 86399) {
            throw DateTimeException::fieldNotInRange(self::NAME, $secondOfDay, 0, 86399);
        }
    }