File tree 2 files changed +8
-7
lines changed
2 files changed +8
-7
lines changed Original file line number Diff line number Diff line change 6
6
7
7
class Alert
8
8
{
9
- protected ?string $ type ;
9
+ protected ?string $ type = null ;
10
10
11
- protected ?string $ title ;
11
+ protected ?string $ title = null ;
12
12
13
- protected ?string $ detail ;
13
+ protected ?string $ detail = null ;
14
14
15
- protected ?array $ buttons ;
15
+ protected ?array $ buttons = null ;
16
16
17
- protected ?int $ defaultId ;
17
+ protected ?int $ defaultId = null ;
18
18
19
- protected ?int $ cancelId ;
19
+ protected ?int $ cancelId = null ;
20
20
21
21
final public function __construct (protected Client $ client ) {}
22
22
23
- public static function new ()
23
+ public static function new (): self
24
24
{
25
25
return new static (new Client );
26
26
}
Original file line number Diff line number Diff line change 5
5
use Illuminate \Support \Facades \Facade ;
6
6
7
7
/**
8
+ * @method static static new()
8
9
* @method static static type(string $type)
9
10
* @method static static title(string $title)
10
11
* @method static static detail(string $detail)
You can’t perform that action at this time.
0 commit comments