1: <?php
2:
3: /**
4: * Copyright (c) 2006- Facebook
5: * Distributed under the Thrift Software License
6: *
7: * See accompanying file LICENSE or visit the Thrift site at:
8: * http://developers.facebook.com/thrift/
9: *
10: * @package thrift
11: * @author Aditya Agarwal <aditya@facebook.com>
12: */
13:
14: /**
15: * Abstract Class providing null implementation for FacebookService
16: * methods.
17: */
18: class FacebookBase implements FacebookServiceIf {
19: protected $name_ = '';
20:
21: public function __construct($name) {
22: $this->name_ = $name;
23: }
24:
25: public function getName() {
26: return $this->name_;
27: }
28:
29: public function getVersion() {
30: return '';
31: }
32:
33: public function getStatus() {
34: return null;
35: }
36:
37: public function getStatusDetails() {
38: return '';
39: }
40:
41: public function getCounters() {
42: return array();
43: }
44:
45: public function getCounter($key) {
46: return null;
47: }
48:
49: public function setOption($key, $value) {
50: return;
51: }
52:
53: public function getOption($key) {
54: return '';
55: }
56:
57: public function getOptions() {
58: return array();
59: }
60:
61: public function aliveSince() {
62: return 0;
63: }
64:
65: public function getCpuProfile($duration) {
66: return '';
67: }
68:
69: public function getLimitedReflection() {
70: return array();
71: }
72:
73: public function reinitialize() {
74: return;
75: }
76:
77: public function shutdown() {
78: return;
79: }
80:
81: }
82:
83: