Mercurial > hg > isophonics-drupal-site
comparison vendor/psy/psysh/src/Command/DocCommand.php @ 16:c2387f117808
Routine composer update
author | Chris Cannam |
---|---|
date | Tue, 10 Jul 2018 15:07:59 +0100 |
parents | 5fb285c0d0e3 |
children | 129ea1e6d783 |
comparison
equal
deleted
inserted
replaced
15:e200cb7efeb3 | 16:c2387f117808 |
---|---|
12 namespace Psy\Command; | 12 namespace Psy\Command; |
13 | 13 |
14 use Psy\Formatter\DocblockFormatter; | 14 use Psy\Formatter\DocblockFormatter; |
15 use Psy\Formatter\SignatureFormatter; | 15 use Psy\Formatter\SignatureFormatter; |
16 use Psy\Input\CodeArgument; | 16 use Psy\Input\CodeArgument; |
17 use Psy\Reflection\ReflectionClassConstant; | |
17 use Psy\Reflection\ReflectionLanguageConstruct; | 18 use Psy\Reflection\ReflectionLanguageConstruct; |
18 use Symfony\Component\Console\Input\InputInterface; | 19 use Symfony\Component\Console\Input\InputInterface; |
19 use Symfony\Component\Console\Output\OutputInterface; | 20 use Symfony\Component\Console\Output\OutputInterface; |
20 | 21 |
21 /** | 22 /** |
99 | 100 |
100 case 'ReflectionProperty': | 101 case 'ReflectionProperty': |
101 $id = $reflector->class . '::$' . $reflector->name; | 102 $id = $reflector->class . '::$' . $reflector->name; |
102 break; | 103 break; |
103 | 104 |
105 case 'ReflectionClassConstant': | |
106 case 'Psy\Reflection\ReflectionClassConstant': | |
107 // @todo this is going to collide with ReflectionMethod ids | |
108 // someday... start running the query by id + type if the DB | |
109 // supports it. | |
110 $id = $reflector->class . '::' . $reflector->name; | |
111 break; | |
112 | |
113 case 'Psy\Reflection\ReflectionConstant_': | |
114 $id = $reflector->name; | |
115 break; | |
116 | |
104 default: | 117 default: |
105 return false; | 118 return false; |
106 } | 119 } |
107 | 120 |
108 return $this->getManualDocById($id); | 121 return $this->getManualDocById($id); |