/**
  * Overrides parent to make sure this display strategy is only used with the
  * appropriate input type
  *
  * @return \EE_Form_Input_With_Options_Base
  * @throws \EE_Error
  */
 public function get_input()
 {
     if (!$this->_input instanceof EE_Form_Input_With_Options_Base) {
         throw new EE_Error(sprintf(__('Can not use a Compound Input Display Strategy (eg checkbox or radio) with an input that doesn\'t have options', 'event_espresso')));
     }
     return parent::get_input();
 }
 /**
  * @param string $type
  */
 function __construct($type = 'text')
 {
     $this->_type = $type;
     parent::__construct();
 }
 /**
  * Overwrites the display strategy
  * @param EE_Display_Strategy_Base $display_strategy
  */
 public function set_display_strategy($display_strategy)
 {
     $this->_display_strategy = $display_strategy;
     $this->_display_strategy->_construct_finalize($this);
 }