Skip to content

Commit 6a41a7f

Browse files
committed
add example of indexed definitions
1 parent 8801edb commit 6a41a7f

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

src/Index/Index.php

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,21 +16,30 @@ class Index implements ReadableIndex, \Serializable
1616

1717
/**
1818
* An associative array that maps namespaces to
19-
* an associative array that maps fully qualified symbol names to global Definitions
19+
* an associative array that maps fully qualified symbol names
20+
* to global Definitions, e.g. :
21+
* [
22+
* 'Psr\Log\LoggerInterface' => [
23+
* 'Psr\Log\LoggerInterface->log()' => $definition,
24+
* 'Psr\Log\LoggerInterface->debug()' => $definition,
25+
* ],
26+
* ]
2027
*
2128
* @var array
2229
*/
2330
private $namespaceDefinitions = [];
2431

2532
/**
26-
* An associative array that maps fully qualified symbol names to global Definitions
33+
* An associative array that maps fully qualified symbol names
34+
* to global Definitions
2735
*
2836
* @var Definition[]
2937
*/
3038
private $globalDefinitions = [];
3139

3240
/**
33-
* An associative array that maps fully qualified symbol names to arrays of document URIs that reference the symbol
41+
* An associative array that maps fully qualified symbol names
42+
* to arrays of document URIs that reference the symbol
3443
*
3544
* @var string[][]
3645
*/

0 commit comments

Comments
 (0)