1 | <?php |
||
12 | class SilverstripeFacebookConnector |
||
13 | { |
||
14 | use Injectable; |
||
15 | |||
16 | /** |
||
17 | * @var Facebook Connection |
||
18 | */ |
||
19 | private static $connection = null; |
||
20 | |||
21 | /** |
||
22 | * settings for connection |
||
23 | * @var array |
||
24 | */ |
||
25 | private static $connection_config = array(); |
||
26 | |||
27 | /** |
||
28 | * application ID - get from FB |
||
29 | * @var string |
||
30 | */ |
||
31 | private static $app_id = ""; |
||
32 | |||
33 | /** |
||
34 | * application secret - get from FB |
||
35 | * @var string |
||
36 | */ |
||
37 | private static $app_secret = ""; |
||
38 | |||
39 | |||
40 | /** |
||
41 | * debug |
||
42 | * @var boolean |
||
43 | */ |
||
44 | protected static $debug = false; |
||
45 | |||
46 | /** |
||
47 | * keep track of errors |
||
48 | * @var array |
||
49 | */ |
||
50 | protected static $error = array(); |
||
51 | |||
52 | /** |
||
53 | * set additional connection details - e.g. default_access_token |
||
54 | * @param array |
||
55 | */ |
||
56 | public static function set_connection_config($connectionConfig) |
||
60 | |||
61 | /** |
||
62 | * create FB connection... |
||
63 | * @return Facebook\Facebook |
||
64 | */ |
||
65 | protected static function get_connection() |
||
79 | |||
80 | /** |
||
81 | * |
||
82 | * @param string $openGraphCommand |
||
83 | * |
||
84 | * @return FacebookResponse | false |
||
85 | */ |
||
86 | public static function run_command($openGraphCommand = "") |
||
107 | |||
108 | /** |
||
109 | * @return details about logged in person |
||
110 | */ |
||
111 | public static function whoami() |
||
118 | |||
119 | |||
120 | /** |
||
121 | * returns an array of recent posts for a page |
||
122 | * @return array |
||
123 | */ |
||
124 | public static function get_feed($pageID) |
||
134 | |||
135 | /** |
||
136 | * returns an array of recent posts for a page |
||
137 | * @return array |
||
138 | */ |
||
139 | public static function check_if_posts_exists($UID) |
||
144 | } |
||
145 |
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..