Skip to content

Commit b648a30

Browse files
Merge pull request #723 from mohammadrasoulasghari/docs/improve-response-factory-phpdoc
Improve PHPDoc annotations for ResponseFactory class
2 parents 8e1b7e2 + 48fb7b9 commit b648a30

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

src/ResponseFactory.php

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,10 @@ class ResponseFactory
3131

3232
protected $encryptHistory;
3333

34+
/***
35+
* @param string $name The name of the root view
36+
* @return void
37+
*/
3438
public function setRootView(string $name): void
3539
{
3640
$this->rootView = $name;
@@ -64,7 +68,10 @@ public function getShared(?string $key = null, $default = null)
6468
return $this->sharedProps;
6569
}
6670

67-
public function flushShared(): void
71+
/**
72+
* @return void
73+
*/
74+
public function flushShared()
6875
{
6976
$this->sharedProps = [];
7077
}
@@ -91,6 +98,9 @@ public function clearHistory(): void
9198
session(['inertia.clear_history' => true]);
9299
}
93100

101+
/**
102+
* @param bool $encrypt
103+
*/
94104
public function encryptHistory($encrypt = true): void
95105
{
96106
$this->encryptHistory = $encrypt;

0 commit comments

Comments
 (0)