当前位置: 首页>>代码示例>>PHP>>正文


PHP FullyQualifiedMethodName::getFullyQualifiedClassName方法代码示例

本文整理汇总了PHP中Phan\Language\FQSEN\FullyQualifiedMethodName::getFullyQualifiedClassName方法的典型用法代码示例。如果您正苦于以下问题:PHP FullyQualifiedMethodName::getFullyQualifiedClassName方法的具体用法?PHP FullyQualifiedMethodName::getFullyQualifiedClassName怎么用?PHP FullyQualifiedMethodName::getFullyQualifiedClassName使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Phan\Language\FQSEN\FullyQualifiedMethodName的用法示例。


在下文中一共展示了FullyQualifiedMethodName::getFullyQualifiedClassName方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: addMethodWithMethodFQSEN

 /**
  * @param FunctionInterface $method
  * Any method
  *
  * @param FullyQualifiedMethodName $fqsen
  * The FQSEN for the method
  *
  * @return null
  */
 private function addMethodWithMethodFQSEN(FunctionInterface $method, FullyQualifiedMethodName $fqsen)
 {
     $this->addMethodInScope($method, $fqsen->getFullyQualifiedClassName());
 }
开发者ID:black-silence,项目名称:phan,代码行数:13,代码来源:MethodMap.php

示例2: internalFunctionSignatureMapForFQSEN

 /**
  * A list of types for parameters associated with the
  * given builtin function with the given name
  *
  * @param FullyQualifiedMethodName|FullyQualifiedFunctionName $function_fqsen
  *
  * @see internal_varargs_check
  * Formerly `function internal_varargs_check`
  */
 public static function internalFunctionSignatureMapForFQSEN($function_fqsen) : array
 {
     $context = new Context();
     $map = self::internalFunctionSignatureMap();
     if ($function_fqsen instanceof FullyQualifiedMethodName) {
         $class_fqsen = $function_fqsen->getFullyQualifiedClassName();
         $class_name = $class_fqsen->getName();
         $function_name = $class_name . '::' . $function_fqsen->getName();
     } else {
         $function_name = $function_fqsen->getName();
     }
     $function_name_original = $function_name;
     $alternate_id = 0;
     $configurations = [];
     while (isset($map[$function_name])) {
         // Get some static data about the function
         $type_name_struct = $map[$function_name];
         if (empty($type_name_struct)) {
             continue;
         }
         // Figure out the return type
         $return_type_name = array_shift($type_name_struct);
         $return_type = $return_type_name ? UnionType::fromStringInContext($return_type_name, $context) : null;
         $name_type_name_map = $type_name_struct;
         $property_name_type_map = [];
         foreach ($name_type_name_map as $name => $type_name) {
             $property_name_type_map[$name] = empty($type_name) ? new UnionType() : UnionType::fromStringInContext($type_name, $context);
         }
         $configurations[] = ['return_type' => $return_type, 'property_name_type_map' => $property_name_type_map];
         $function_name = $function_name_original . '\'' . ++$alternate_id;
     }
     return $configurations;
 }
开发者ID:zhangf911,项目名称:phan,代码行数:42,代码来源:UnionType.php


注:本文中的Phan\Language\FQSEN\FullyQualifiedMethodName::getFullyQualifiedClassName方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。