| 1 | <?php |
||
| 19 | class Unconfigured_Subscription_Service implements Subscription_Service { |
||
| 20 | |||
| 21 | /** |
||
| 22 | * Is always available because it is the fallback. |
||
| 23 | * |
||
| 24 | * @inheritDoc |
||
| 25 | */ |
||
| 26 | public static function available() { |
||
| 29 | |||
| 30 | /** |
||
| 31 | * Function: initialize() |
||
| 32 | * |
||
| 33 | * @inheritDoc |
||
| 34 | */ |
||
| 35 | public function initialize() { |
||
| 38 | |||
| 39 | /** |
||
| 40 | * No subscription service available, no users can see this content. |
||
| 41 | * |
||
| 42 | * @param array $valid_plan_ids . |
||
| 43 | */ |
||
| 44 | public function visitor_can_view_content( $valid_plan_ids ) { |
||
| 47 | |||
| 48 | /** |
||
| 49 | * The current visitor would like to obtain access. Where do they go? |
||
| 50 | * |
||
| 51 | * @param string $mode . |
||
| 52 | */ |
||
| 53 | public function access_url( $mode = 'subscribe' ) { |
||
| 56 | |||
| 57 | } |
||
| 58 | // phpcs:enable |
||
| 59 |