public function get_option( $key, $default = null ) {
		$value = $default;

		if ( isset( $this->options->$key ) ) {
			$value = $this->options->$key;
		}

		if ( papi_is_empty( $value ) && isset( $this->default_options[$key] ) ) {
			$value = $this->default_options[$key];
		}

		if ( $key === 'settings' && is_array( $value ) ) {
			$value = (object) $value;
		}

		return $value;
	}
public function get_option( $key, $default = null ) {
		$value = $default;

		if ( isset( $this->options->$key ) ) {
			$value = $this->options->$key;
		}

		if ( papi_is_empty( $value ) && isset( $this->default_options[$key] ) ) {
			$value = $this->default_options[$key];
		}

		if ( $key === 'settings' && is_array( $value ) ) {
			$value = (object) $value;
		}

		return $value;
	}
public function get_option ( $ key , $ default = null ) { $ value = $ default ; if ( isset ( $ this -> options -> $ key ) ) { $ value = $ this -> options -> $ key ; } if ( papi_is_empty ( $ value ) && isset ( $ this -> default_options [ $ key ] ) ) { $ value = $ this -> default_options [ $ key ] ; } if ( $ key === 'settings' && is_array ( $ value ) ) { $ value = ( object ) $ value ; } return $ value ; }
Get option value.

@param  string $key
@param  mixed  $default

@return mixed
Get option value .