File: 03-resolving-all-elements.php

package info (click to toggle)
php-phpdocumentor-type-resolver 1.10.0-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,312 kB
  • sloc: php: 25,713; xml: 102; makefile: 50
file content (17 lines) | stat: -rw-r--r-- 627 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<?php

use phpDocumentor\Reflection\Types\Context;
use phpDocumentor\Reflection\FqsenResolver;

require '/usr/share/php/phpDocumentor/Reflection/Types/autoload.php';

$fqsenResolver = new FqsenResolver();

// Will use the namespace and aliases to resolve to a Fqsen object
$context = new Context('\phpDocumentor\Types');

// Method named: \phpDocumentor\Types\Types\Resolver::resolveFqsen()
var_dump((string)$fqsenResolver->resolve('Types\Resolver::resolveFqsen()', $context));

// Property named: \phpDocumentor\Types\Types\Resolver::$keyWords
var_dump((string)$fqsenResolver->resolve('Types\Resolver::$keyWords', $context));