src/Potter/Theme/Options.php
public function addOption(array $args)
    {
        $default = array(
            'id'           => '',
            'label'        => '',
            'desc'         => '',
            'std'          => '',
            'type'         => 'text',
            'section'      => '',
            'rows'         => '',
            'taxonomy'     => '',
            'min_max_step' => '',
            'class'        => '',
            'condition'    => '',
            'operator'     => 'and'
        );

        if (empty($args['section'])):
            $args['section'] = $this->current_section;
        endif;

        $args = wp_parse_args($args, $default);

        $this->settings[] = $args;

        return $this;
    }
public function addOption(array $args)
    {
        $default = array(
            'id'           => '',
            'label'        => '',
            'desc'         => '',
            'std'          => '',
            'type'         => 'text',
            'section'      => '',
            'rows'         => '',
            'taxonomy'     => '',
            'min_max_step' => '',
            'class'        => '',
            'condition'    => '',
            'operator'     => 'and'
        );

        if (empty($args['section'])):
            $args['section'] = $this->current_section;
        endif;

        $args = wp_parse_args($args, $default);

        $this->settings[] = $args;

        return $this;
    }
@param array $args

@return $this