public function setOptionsProperty(array $properties)
    {
        if (Helpers::isKeyExists($properties, 'options') && is_array($properties['options'])) {
            $labels = $this->transferOptionsToLabels($properties['options']);

            foreach ($labels as $label) {
                $this->addOption($label->text, $label->isPlain, $label->lang, $label->value);
            }

        }

        return $this;
    }
public function setOptionsProperty(array $properties)
    {
        if (Helpers::isKeyExists($properties, 'options') && is_array($properties['options'])) {
            $labels = $this->transferOptionsToLabels($properties['options']);

            foreach ($labels as $label) {
                $this->addOption($label->text, $label->isPlain, $label->lang, $label->value);
            }

        }

        return $this;
    }
public function setOptionsProperty ( array $ properties ) { if ( Helpers :: isKeyExists ( $ properties , 'options' ) && is_array ( $ properties [ 'options' ] ) ) { $ labels = $ this -> transferOptionsToLabels ( $ properties [ 'options' ] ) ; foreach ( $ labels as $ label ) { $ this -> addOption ( $ label -> text , $ label -> isPlain , $ label -> lang , $ label -> value ) ; } } return $ this ; }
It set the options property for a given field

@param array $properties


@return $this
It set the options property for a given field