ConfigGetterTrait.php
4 months ago
CustomGetterTrait.php
7 months ago
MeasurableGetterTrait.php
7 months ago
OptionGetterTrait.php
7 months ago
SystemGetterTrait.php
7 months ago
CustomGetterTrait.php
29 lines
| 1 | <?php |
| 2 | |
| 3 | /** |
| 4 | * Matomo - free/libre analytics platform |
| 5 | * |
| 6 | * @link https://matomo.org |
| 7 | * @license https://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later |
| 8 | */ |
| 9 | namespace Piwik\Settings\Interfaces\Traits\Getters; |
| 10 | |
| 11 | /** |
| 12 | * @template T of mixed |
| 13 | */ |
| 14 | trait CustomGetterTrait |
| 15 | { |
| 16 | /** |
| 17 | * @return T |
| 18 | */ |
| 19 | protected static abstract function getCustomValue(?int $idSite = null); |
| 20 | protected static abstract function getCustomSettingName() : string; |
| 21 | /** |
| 22 | * @deprecated Will be removed in 6.0 in favour of making getCustomSettingName public |
| 23 | */ |
| 24 | public static function getCustomSettingShortName() : string |
| 25 | { |
| 26 | return self::getCustomSettingName(); |
| 27 | } |
| 28 | } |
| 29 |