Carbon_Fields\Field\Time_Field::set_interval_step PHP Method

set_interval_step() public method

Sets the interval step.
public set_interval_step ( $interval_steps )
    public function set_interval_step($interval_steps)
    {
        $output = array();
        foreach ($interval_steps as $step_name => $step_value) {
            $name = 'step' . ucwords($step_name);
            $output[$name] = (int) $step_value;
        }
        $this->interval_step = $output;
        return $this;
    }