Lines Matching refs:subclassName

84      * @param string|null $subclassName The GraphNode sub class to cast to.
90 public function makeGraphNode($subclassName = null) argument
95 return $this->castAsGraphNodeOrGraphEdge($this->decodedBody, $subclassName);
185 * @param string|null $subclassName The GraphNode sub class to cast the list items to.
192 public function makeGraphEdge($subclassName = null, $auto_prefix = true) argument
197 if ($subclassName && $auto_prefix) {
198 $subclassName = static::BASE_GRAPH_OBJECT_PREFIX . $subclassName;
201 return $this->castAsGraphNodeOrGraphEdge($this->decodedBody, $subclassName);
250 * @param string|null $subclassName The subclass to cast this collection to.
256 public function safelyMakeGraphNode(array $data, $subclassName = null) argument
258 $subclassName = $subclassName ?: static::BASE_GRAPH_NODE_CLASS;
259 static::validateSubclass($subclassName);
272 $graphObjectMap = $subclassName::getObjectMap();
284 return new $subclassName($items);
291 * @param string|null $subclassName The subclass to cast this collection to.
299 …public function castAsGraphNodeOrGraphEdge(array $data, $subclassName = null, $parentKey = null, $… argument
304 return $this->safelyMakeGraphEdge($data, $subclassName, $parentKey, $parentNodeId);
311 return $this->safelyMakeGraphNode($data, $subclassName);
318 * @param string|null $subclassName The GraphNode subclass to cast each item in the list to.
326 …public function safelyMakeGraphEdge(array $data, $subclassName = null, $parentKey = null, $parentN… argument
334 $dataList[] = $this->safelyMakeGraphNode($graphNode, $subclassName);
343 …Name($this->response->getRequest(), $dataList, $metaData, $parentGraphEdgeEndpoint, $subclassName);
380 * @param string $subclassName The GraphNode subclass to validate.
384 public static function validateSubclass($subclassName) argument
386 …if ($subclassName == static::BASE_GRAPH_NODE_CLASS || is_subclass_of($subclassName, static::BASE_G…
390 …throw new FacebookSDKException('The given subclass "' . $subclassName . '" is not valid. Cannot ca…