File: vendor/phpdocumentor/type-resolver/examples/02-resolving-classes.php

Recommend this page to a friend!
  Classes of Renato De Oliveira Lucena  >  PHP Pokemon Script  >  vendor/phpdocumentor/type-resolver/examples/02-resolving-classes.php  >  Download  
File: vendor/phpdocumentor/type-resolver/examples/02-resolving-classes.php
Role: Example script
Content type: text/plain
Description: Example script
Class: PHP Pokemon Script
Provides an API to manage a database of Pokemons
Author: By
Last change:
Date: 2 years ago
Size: 421 bytes


Class file image Download

use phpDocumentor\Reflection\Types\Context;


$typeResolver = new TypeResolver();

// Will use the namespace and aliases to resolve to \phpDocumentor\Types\Resolver|Mockery\MockInterface
$context = new Context('\phpDocumentor', [ 'm' => 'Mockery' ]);
var_dump((string)$typeResolver->resolve('Types\Resolver|m\MockInterface', $context));

For more information send a message to info at phpclasses dot org.