src/Samurai/Component/Task/Option.php
public function importFromArray(array $options)
    {
        foreach ($options as $key => $value) {
            switch (true) {
                case $key === 'args':
                    $this->args = $value;
                    break;
                case is_integer($key):
                    $this->args[] = $value;
                    break;
                default:
                    $this->options[$key] = $value;
                    break;
            }
        }
    }
public function importFromArray(array $options)
    {
        foreach ($options as $key => $value) {
            switch (true) {
                case $key === 'args':
                    $this->args = $value;
                    break;
                case is_integer($key):
                    $this->args[] = $value;
                    break;
                default:
                    $this->options[$key] = $value;
                    break;
            }
        }
    }
public function importFromArray ( array $ options ) { foreach ( $ options as $ key => $ value ) { switch ( true ) { case $ key === 'args' : $ this -> args = $ value ; break ; case is_integer ( $ key ) : $ this -> args [ ] = $ value ; break ; default : $ this -> options [ $ key ] = $ value ; break ; } } }
import from array

@param   array   $options
import from array