対話モードを設定

@param   string  $value          対話モード  MODE_DIALOG | MODE_SRTR
@return  self
341564
public function setMode($value)
    {
        if ($value !== null &&
           $value !== self::MODE_DIALOG &&
           $value !== self::MODE_SRTR) {
            throw new DomainError('Invalid mode');
        }
        $this->parameters['mode'] = $value;
        return $this;
    }
438683
public function setTtsParam($value)
    {
        if (is_array($value)) {
            $value = Support::jsonStr($value);
        }

        $this->params['tts_param'] = $value;

        return $this;
    }
1142591
public function setPhone(?string $value) : Contact
    {

        if ($this->data['phone'] !== $value) {
            $this->data['phone'] = $value;
            $this->setModified('phone');
        }

        return $this;
    }
1349143
public function addClass(string $value) : self
    {
        $class = trim($this->attributes['class']);
        $this->attributes['class'] = trim($class . ' ' . trim($value));
        return $this;
    }
249625
public function defaultValue($value) {
        $this->validated = false;
        $this->config[self::DEFAULT_VALUE] = $value;
        return $this;
    }
951344
public function set_description($value) {
        $this->description = clean_text($value);
        $this->dirty = true;

        return $this;
    }
849952
public function setValue($value)
    {
        $this->value = ($value) ? self::TRUE : self::FALSE;

        return $this;
    }
1216756
public function setHeader(string $header, $value): self
    {
        $this->header->set($header, $value);

        return $this;
    }
344859
public function setMobile(?string $value) : Contact
    {

        if ($this->data['mobile'] !== $value) {
            $this->data['mobile'] = $value;
            $this->setModified('mobile');
        }

        return $this;
    }
1295237
public function setValue(string $value) : SingleSelect
    {
        $oneSelected = false;

        foreach ($this->getOptions() as $option) {
            $thisSelected = ! $oneSelected && $option->getValue() === $value;
            $oneSelected = $oneSelected || $thisSelected;
            $option->setSelected($thisSelected);
        }

        return $this;
    }
581048
function remove($value)
    {
        $key = $this->search($value);
        if ($key)
        {
            unset($this->array[$key]);
        }

        return $this;
    }
738121
public function setValue(?string $value) : Setting
    {

        if ($this->data['value'] !== $value) {
            $this->data['value'] = $value;
            $this->setModified('value');
        }

        return $this;
    }
847559
public function setText($value)
    {
        $this->text = $value;

        // Auto-convert into html.
        if (is_object($value) && stripos(get_class($value), 'HtmlGenerator\\Html')) {
            $this->text = (string) $value;
        }

        return $this;
    }
771937
public function setValue($value)
    {
        $this->value = $value;
        if ($value instanceof ValueAwareInterface) {
            $this->value = $value->getFormValue();
        }
        return $this;
    }
472955
public function forgetValue($value)
    {
        $key = array_search($value, $this->values);

        if ($key !== false) {
            unset($this->values[$key]);
        }

        return $this;
    }
1199366
public function removeValue($value): self
    {
        $this->generatorToArray();

        // init
        $isNumericArray = true;

        foreach ($this->getGenerator() as $key => $item) {
            if ($item === $value) {
                if (!\is_int($key)) {
                    $isNumericArray = false;
                }
                unset($this->array[$key]);
            }
        }

        if ($isNumericArray) {
            $this->array = \array_values($this->array);
        }

        return static::create(
            $this->array,
            $this->iteratorClass,
            false
        );
    }
457756
public function setScopeId(?string $value) : Log
    {

        if ($this->data['scope_id'] !== $value) {
            $this->data['scope_id'] = $value;
            $this->setModified('scope_id');
        }

        return $this;
    }