1
0
Fork 0

add example of indexed definitions

pull/451/head
Nicolas MURE 2017-08-10 10:01:18 +02:00
parent 8801edb7a2
commit 6a41a7f0dc
No known key found for this signature in database
GPG Key ID: E5B036F9145C4CAA
1 changed files with 12 additions and 3 deletions

View File

@ -16,21 +16,30 @@ class Index implements ReadableIndex, \Serializable
/** /**
* An associative array that maps namespaces to * An associative array that maps namespaces to
* an associative array that maps fully qualified symbol names to global Definitions * an associative array that maps fully qualified symbol names
* to global Definitions, e.g. :
* [
* 'Psr\Log\LoggerInterface' => [
* 'Psr\Log\LoggerInterface->log()' => $definition,
* 'Psr\Log\LoggerInterface->debug()' => $definition,
* ],
* ]
* *
* @var array * @var array
*/ */
private $namespaceDefinitions = []; private $namespaceDefinitions = [];
/** /**
* An associative array that maps fully qualified symbol names to global Definitions * An associative array that maps fully qualified symbol names
* to global Definitions
* *
* @var Definition[] * @var Definition[]
*/ */
private $globalDefinitions = []; private $globalDefinitions = [];
/** /**
* An associative array that maps fully qualified symbol names to arrays of document URIs that reference the symbol * An associative array that maps fully qualified symbol names
* to arrays of document URIs that reference the symbol
* *
* @var string[][] * @var string[][]
*/ */