| 1 | <?php |
||
| 15 | class Jetpack_Affiliate { |
||
| 16 | |||
| 17 | /** |
||
| 18 | * @since 6.9.0 |
||
| 19 | * @var Jetpack_Affiliate This class instance. |
||
| 20 | **/ |
||
| 21 | private static $instance = null; |
||
| 22 | |||
| 23 | private function __construct() { |
||
| 28 | |||
| 29 | /** |
||
| 30 | * Initializes the class or returns the singleton |
||
| 31 | * |
||
| 32 | * @since 6.9.0 |
||
| 33 | * |
||
| 34 | * @return Jetpack_Affiliate | false |
||
| 35 | */ |
||
| 36 | public static function init() { |
||
| 42 | |||
| 43 | /** |
||
| 44 | * Returns the affiliate code from database after filtering it. |
||
| 45 | * |
||
| 46 | * @since 6.9.0 |
||
| 47 | * |
||
| 48 | * @return string The affiliate code. |
||
| 49 | */ |
||
| 50 | public function get_affiliate_code() { |
||
| 60 | } |
||
| 61 | |||
| 63 |