src/core/class-papi-core-property.php
public function get_setting( $key, $default = null ) {
		if ( ! is_string( $key ) ) {
			return $default;
		}

		$settings = $this->get_settings();

		if ( isset( $settings->$key ) ) {
			return $settings->$key;
		}

		return $default;
	}
public function get_setting( $key, $default = null ) {
		if ( ! is_string( $key ) ) {
			return $default;
		}

		$settings = $this->get_settings();

		if ( isset( $settings->$key ) ) {
			return $settings->$key;
		}

		return $default;
	}
Get setting value.

@param  string $key
@param  mixed  $default

@return stdClass