Skip to content

Commit f018476

Browse files
Jaspar Guptabarryvdh
authored andcommitted
Add method annotations to facade for IDE suggestions (barryvdh#892)
* docs: add IDE method suggestions to facade * docs: add addMessage method annotation
1 parent d438953 commit f018476

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

src/Facade.php

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,22 @@
11
<?php namespace Barryvdh\Debugbar;
22

3+
/**
4+
* @method static \Barryvdh\Debugbar\LaravelDebugbar addCollector(\DebugBar\DataCollector\DataCollectorInterface $collector)
5+
* @method static void addMessage(mixed $message, string $label = 'info')
6+
* @method static void alert(string $message)
7+
* @method static void critical(string $message)
8+
* @method static void debug(string $message)
9+
* @method static void emergency(string $message)
10+
* @method static void error(string $message)
11+
* @method static \Barryvdh\Debugbar\LaravelDebugbar getCollector(string $name)
12+
* @method static bool hasCollector(string $name)
13+
* @method static void info(string $message)
14+
* @method static void log(string $message)
15+
* @method static void notice(string $message)
16+
* @method static void warning(string $message)
17+
*
18+
* @see \Barryvdh\Debugbar\LaravelDebugbar
19+
*/
320
class Facade extends \Illuminate\Support\Facades\Facade
421
{
522
/**

0 commit comments

Comments
 (0)