public function getOption($key)
    {
        $options = $this->getOptions();

        if (!array_key_exists($key, $options)) {
            throw new \InvalidArgumentException("An invalid option was searched for in the '".$options['column_name']."' column");
        }

        return $options[$key];
    }
public function getOption($key)
    {
        $options = $this->getOptions();

        if (!array_key_exists($key, $options)) {
            throw new \InvalidArgumentException("An invalid option was searched for in the '".$options['column_name']."' column");
        }

        return $options[$key];
    }
public function getOption ( $ key ) { $ options = $ this -> getOptions ( ) ; if ( ! array_key_exists ( $ key , $ options ) ) { throw new \ InvalidArgumentException ( "An invalid option was searched for in the '" . $ options [ 'column_name' ] . "' column" ) ; } return $ options [ $ key ] ; }
Gets a field's option.

@param string $key

@return mixed
Gets a field s option .