Skip to content

Commit

Permalink
Add method annotations to facade for IDE suggestions (#892)
Browse files Browse the repository at this point in the history
* docs: add IDE method suggestions to facade

* docs: add addMessage method annotation
  • Loading branch information
Jaspar Gupta authored and barryvdh committed Jan 28, 2019
1 parent d438953 commit f018476
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions src/Facade.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,22 @@
<?php namespace Barryvdh\Debugbar;

/**
* @method static \Barryvdh\Debugbar\LaravelDebugbar addCollector(\DebugBar\DataCollector\DataCollectorInterface $collector)
* @method static void addMessage(mixed $message, string $label = 'info')
* @method static void alert(string $message)
* @method static void critical(string $message)
* @method static void debug(string $message)
* @method static void emergency(string $message)
* @method static void error(string $message)
* @method static \Barryvdh\Debugbar\LaravelDebugbar getCollector(string $name)
* @method static bool hasCollector(string $name)
* @method static void info(string $message)
* @method static void log(string $message)
* @method static void notice(string $message)
* @method static void warning(string $message)
*
* @see \Barryvdh\Debugbar\LaravelDebugbar
*/
class Facade extends \Illuminate\Support\Facades\Facade
{
/**
Expand Down

0 comments on commit f018476

Please sign in to comment.