src/Engine/CrudeSetupTrait/SelectOptions.php
public function setSelectOptions($attr, $options = null)
    {
        $optionsList = is_array($attr)
            ? $attr
            : [$attr => $options];

        foreach ($optionsList as $key => $value)
            $this->selectOptions[$key] = $value;

        return $this;
    }
public function setSelectOptions($attr, $options = null)
    {
        $optionsList = is_array($attr)
            ? $attr
            : [$attr => $options];

        foreach ($optionsList as $key => $value)
            $this->selectOptions[$key] = $value;

        return $this;
    }
public function setSelectOptions ( $ attr , $ options = null ) { $ optionsList = is_array ( $ attr ) ? $ attr : [ $ attr => $ options ] ; foreach ( $ optionsList as $ key => $ value ) $ this -> selectOptions [ $ key ] = $ value ; return $ this ; }
Sets the Select options.

@param  string|array $attr
@param  array $options = null

@return self
Sets the Select options .