PHP Classes

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

Recommend this page to a friend!
  Classes of Renato 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: 6 years ago
Size: 421 bytes
 

Contents

Class file image Download
<?php

use phpDocumentor\Reflection\Types\Context;
use
phpDocumentor\Reflection\TypeResolver;

require
'../vendor/autoload.php';

$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));