From 6a41a7f0dc95abf428989f31125c578e98968088 Mon Sep 17 00:00:00 2001 From: Nicolas MURE Date: Thu, 10 Aug 2017 10:01:18 +0200 Subject: [PATCH] add example of indexed definitions --- src/Index/Index.php | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/src/Index/Index.php b/src/Index/Index.php index 8d8675d..a33d9ad 100644 --- a/src/Index/Index.php +++ b/src/Index/Index.php @@ -16,21 +16,30 @@ class Index implements ReadableIndex, \Serializable /** * 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 */ 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[] */ 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[][] */