pwyckoff | 99b000b | 2008-04-03 19:30:55 +0000 | [diff] [blame] | 1 | <?php |
David Reiss | ea2cba8 | 2009-03-30 21:35:00 +0000 | [diff] [blame] | 2 | /* |
| 3 | * Licensed to the Apache Software Foundation (ASF) under one |
| 4 | * or more contributor license agreements. See the NOTICE file |
| 5 | * distributed with this work for additional information |
| 6 | * regarding copyright ownership. The ASF licenses this file |
| 7 | * to you under the Apache License, Version 2.0 (the |
| 8 | * "License"); you may not use this file except in compliance |
| 9 | * with the License. You may obtain a copy of the License at |
pwyckoff | 99b000b | 2008-04-03 19:30:55 +0000 | [diff] [blame] | 10 | * |
David Reiss | ea2cba8 | 2009-03-30 21:35:00 +0000 | [diff] [blame] | 11 | * http://www.apache.org/licenses/LICENSE-2.0 |
pwyckoff | 99b000b | 2008-04-03 19:30:55 +0000 | [diff] [blame] | 12 | * |
David Reiss | ea2cba8 | 2009-03-30 21:35:00 +0000 | [diff] [blame] | 13 | * Unless required by applicable law or agreed to in writing, |
| 14 | * software distributed under the License is distributed on an |
| 15 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
| 16 | * KIND, either express or implied. See the License for the |
| 17 | * specific language governing permissions and limitations |
| 18 | * under the License. |
pwyckoff | 99b000b | 2008-04-03 19:30:55 +0000 | [diff] [blame] | 19 | */ |
| 20 | |
| 21 | /** |
| 22 | * Abstract Class providing null implementation for FacebookService |
| 23 | * methods. |
| 24 | */ |
| 25 | class FacebookBase implements FacebookServiceIf { |
| 26 | protected $name_ = ''; |
| 27 | |
| 28 | public function __construct($name) { |
| 29 | $this->name_ = $name; |
| 30 | } |
| 31 | |
| 32 | public function getName() { |
| 33 | return $this->name_; |
| 34 | } |
| 35 | |
| 36 | public function getVersion() { |
| 37 | return ''; |
| 38 | } |
| 39 | |
| 40 | public function getStatus() { |
| 41 | return null; |
| 42 | } |
| 43 | |
| 44 | public function getStatusDetails() { |
| 45 | return ''; |
| 46 | } |
| 47 | |
| 48 | public function getCounters() { |
| 49 | return array(); |
| 50 | } |
| 51 | |
| 52 | public function getCounter($key) { |
| 53 | return null; |
| 54 | } |
| 55 | |
| 56 | public function setOption($key, $value) { |
| 57 | return; |
| 58 | } |
| 59 | |
| 60 | public function getOption($key) { |
| 61 | return ''; |
| 62 | } |
| 63 | |
| 64 | public function getOptions() { |
| 65 | return array(); |
| 66 | } |
| 67 | |
| 68 | public function aliveSince() { |
| 69 | return 0; |
| 70 | } |
| 71 | |
| 72 | public function getCpuProfile($duration) { |
| 73 | return ''; |
| 74 | } |
| 75 | |
| 76 | public function getLimitedReflection() { |
| 77 | return array(); |
| 78 | } |
| 79 | |
| 80 | public function reinitialize() { |
| 81 | return; |
| 82 | } |
| 83 | |
| 84 | public function shutdown() { |
| 85 | return; |
| 86 | } |
| 87 | |
| 88 | } |
| 89 | |