PHP Classes

File: Library/vendor/phpdocumentor/type-resolver/examples/03-resolving-all-elements.php

Recommend this page to a friend!
  Classes of Duong Huynh Nghia   Lego PHP   Library/vendor/phpdocumentor/type-resolver/examples/03-resolving-all-elements.php   Download  
File: Library/vendor/phpdocumentor/type-resolver/examples/03-resolving-all-elements.php
Role: Example script
Content type: text/plain
Description: Example script
Class: Lego PHP
Blog and shopping cart system
Author: By
Last change:
Date: 7 years ago
Size: 591 bytes
 

Contents

Class file image Download
<?php

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

require
'../vendor/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));