# tier-pricing-table/6.1.0/src/Settings/Sections/SubsectionAbstract.php

Tiered Pricing Table for WooCommerce, version 6.1.0. 39 lines.

- Page: https://pluginprobe.com/plugins/tier-pricing-table/6.1.0/code/src/Settings/Sections/SubsectionAbstract.php
- Raw: https://pluginprobe.com/plugins/tier-pricing-table/6.1.0/raw/src/Settings/Sections/SubsectionAbstract.php
- Modified: 2023-11-06T14:03:34+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/tier-pricing-table/6.1.0/code/src/Settings/Sections/SubsectionAbstract.php#L10-L20`.

```php
<?php namespace TierPricingTable\Settings\Sections;

use TierPricingTable\Settings\Settings;

abstract class SubsectionAbstract {
	
	abstract public function getTitle();
	
	abstract public function getDescription();
	
	abstract public function getSlug();
	
	abstract public function getSettings();
	
	public function getWrappedSettings() {
		
		$settings = $this->getSettings();
		
		array_unshift( $settings, array(
			'title'             => $this->getTitle(),
			'desc'              => $this->getDescription(),
			'id'                => Settings::SETTINGS_PREFIX . '_subsection_' . $this->getSlug(),
			'type'              => 'title',
			'custom_attributes' => $this->getCustomAttributes(),
		) );
		
		$settings[] = array(
			'type' => 'sectionend',
			'id'   => Settings::SETTINGS_PREFIX . '_end_subsection_' . $this->getSlug(),
		);
		
		return $settings;
	}
	
	protected function getCustomAttributes() {
		return array();
	}
}

```
