Browse Source

Enable further clickability in IDE.

dereuromark 9 years ago
parent
commit
c91bd6301d

+ 1 - 1
src/Routing/Router.php

@@ -999,7 +999,7 @@ class Router
     /**
      * Get the route scopes and their connected routes.
      *
-     * @return array
+     * @return \Cake\Routing\Route\Route[]
      */
     public static function routes()
     {

+ 2 - 0
src/Shell/CommandListShell.php

@@ -23,6 +23,8 @@ use SimpleXmlElement;
 
 /**
  * Shows a list of commands available from the console.
+ *
+ * @property \Cake\Shell\Task\CommandTask $Command
  */
 class CommandListShell extends Shell
 {

+ 2 - 0
src/Shell/CompletionShell.php

@@ -18,6 +18,8 @@ use Cake\Console\Shell;
 
 /**
  * Provide command completion shells such as bash.
+ *
+ * @property \Cake\Shell\Task\CommandTask $Command
  */
 class CompletionShell extends Shell
 {

+ 2 - 0
src/Shell/I18nShell.php

@@ -21,6 +21,8 @@ use DirectoryIterator;
 
 /**
  * Shell for I18N management.
+ *
+ * @property \Cake\Shell\Task\ExtractTask $Extract
  */
 class I18nShell extends Shell
 {

+ 2 - 1
src/Shell/OrmCacheShell.php

@@ -90,10 +90,11 @@ class OrmCacheShell extends Shell
     /**
      * Helper method to get the schema collection.
      *
-     * @return false|\Cake\Database\Schema\Collection
+     * @return false|\Cake\Database\Schema\Collection|\Cake\Database\Schema\CachedCollection
      */
     protected function _getSchema()
     {
+        /* @var \Cake\Database\Connection $source */
         $source = ConnectionManager::get($this->params['connection']);
         if (!method_exists($source, 'schemaCollection')) {
             $msg = sprintf(

+ 2 - 0
src/Shell/Task/CommandTask.php

@@ -210,6 +210,7 @@ class CommandTask extends Shell
             return false;
         }
 
+        /* @var \Cake\Console\Shell $Shell */
         $Shell = new $class();
         $Shell->plugin = trim($pluginDot, '.');
         $Shell->initialize();
@@ -246,6 +247,7 @@ class CommandTask extends Shell
 
         $options = [];
         $array = $parser->options();
+        /* @var \Cake\Console\ConsoleInputOption $obj */
         foreach ($array as $name => $obj) {
             $options[] = "--$name";
             $short = $obj->short();

+ 1 - 0
src/Shell/Task/ExtractTask.php

@@ -364,6 +364,7 @@ class ExtractTask extends Shell
      */
     protected function _extractTokens()
     {
+        /* @var \Cake\Shell\Helper\ProgressHelper $progress */
         $progress = $this->helper('progress');
         $progress->init(['total' => count($this->_files)]);
         $isVerbose = $this->param('verbose');