1 | <?php |
||
36 | class GraphObjectFactory extends GraphNodeFactory |
||
37 | { |
||
38 | /** |
||
39 | * @const string The base graph object class. |
||
40 | */ |
||
41 | const BASE_GRAPH_NODE_CLASS = '\Facebook\GraphNodes\GraphObject'; |
||
42 | |||
43 | /** |
||
44 | * @const string The base graph edge class. |
||
45 | */ |
||
46 | const BASE_GRAPH_EDGE_CLASS = '\Facebook\GraphNodes\GraphList'; |
||
47 | |||
48 | /** |
||
49 | * Tries to convert a FacebookResponse entity into a GraphNode. |
||
50 | * |
||
51 | * @param string|null $subclassName The GraphNode sub class to cast to. |
||
52 | * |
||
53 | * @return GraphNode |
||
54 | * |
||
55 | * @deprecated 5.0.0 GraphObjectFactory has been renamed to GraphNodeFactory |
||
56 | */ |
||
57 | public function makeGraphObject($subclassName = null) |
||
58 | { |
||
59 | return $this->makeGraphNode($subclassName); |
||
60 | } |
||
61 | |||
62 | /** |
||
63 | * Convenience method for creating a GraphEvent collection. |
||
64 | * |
||
65 | * @return GraphEvent |
||
66 | * |
||
67 | * @throws FacebookSDKException |
||
68 | */ |
||
69 | public function makeGraphEvent() |
||
73 | |||
74 | /** |
||
75 | * Tries to convert a FacebookResponse entity into a GraphEdge. |
||
76 | * |
||
77 | * @param string|null $subclassName The GraphNode sub class to cast the list items to. |
||
78 | * @param boolean $auto_prefix Toggle to auto-prefix the subclass name. |
||
79 | * |
||
80 | * @return GraphEdge |
||
81 | * |
||
82 | * @deprecated 5.0.0 GraphObjectFactory has been renamed to GraphNodeFactory |
||
83 | */ |
||
84 | public function makeGraphList($subclassName = null, $auto_prefix = true) |
||
88 | } |
||
89 |