File tree 4 files changed +23
-12
lines changed
4 files changed +23
-12
lines changed Original file line number Diff line number Diff line change @@ -7,17 +7,19 @@ interface VarnishableModel
7
7
/**
8
8
* Fill the model with an array of attributes.
9
9
*
10
- * @param array $attributes
11
- * @return $this
10
+ * @param array $attributes
12
11
*
13
12
* @throws \Illuminate\Database\Eloquent\MassAssignmentException
13
+ *
14
+ * @return $this
14
15
*/
15
16
public function fill (array $ attributes );
16
17
17
18
/**
18
19
* Get an attribute from the model.
19
20
*
20
- * @param string $key
21
+ * @param string $key
22
+ *
21
23
* @return mixed
22
24
*/
23
25
public function getAttribute ($ key );
@@ -39,8 +41,9 @@ public function newQuery();
39
41
/**
40
42
* Set a given attribute on the model.
41
43
*
42
- * @param string $key
43
- * @param mixed $value
44
+ * @param string $key
45
+ * @param mixed $value
46
+ *
44
47
* @return mixed
45
48
*/
46
49
public function setAttribute ($ key , $ value );
Original file line number Diff line number Diff line change @@ -53,8 +53,9 @@ public function __construct(VarnishableModel $model)
53
53
* Create dirty eloquent model object
54
54
* based on the last saved model data.
55
55
*
56
- * @return VarnishableModel
57
56
* @throws Exception
57
+ *
58
+ * @return VarnishableModel
58
59
*/
59
60
protected function createDirtyModel (): VarnishableModel
60
61
{
@@ -92,8 +93,9 @@ protected function getQuery(VarnishableModel $model): Builder
92
93
/**
93
94
* Model accessor.
94
95
*
95
- * @return VarnishableModel
96
96
* @throws Exception
97
+ *
98
+ * @return VarnishableModel
97
99
*/
98
100
public function model (): VarnishableModel
99
101
{
@@ -103,8 +105,9 @@ public function model(): VarnishableModel
103
105
/**
104
106
* Initialize a new VarnishableModel object.
105
107
*
106
- * @return VarnishableModel
107
108
* @throws Exception
109
+ *
110
+ * @return VarnishableModel
108
111
*/
109
112
protected function newModel (): VarnishableModel
110
113
{
@@ -123,8 +126,9 @@ protected function newModel(): VarnishableModel
123
126
* Retrieve fresh eloquent model from
124
127
* run-time cache or the database.
125
128
*
126
- * @return VarnishableModel|null
127
129
* @throws Exception
130
+ *
131
+ * @return VarnishableModel|null
128
132
*/
129
133
protected function retrieveModel (): ?VarnishableModel
130
134
{
Original file line number Diff line number Diff line change @@ -83,8 +83,9 @@ public function restored(VarnishableModel $model): void
83
83
*
84
84
* @param VarnishableModel $model
85
85
*
86
- * @return void
87
86
* @throws Exception
87
+ *
88
+ * @return void
88
89
*/
89
90
public function retrieved (VarnishableModel $ model ): void
90
91
{
@@ -108,8 +109,9 @@ public function saved(VarnishableModel $model): void
108
109
*
109
110
* @param VarnishableModel $model
110
111
*
111
- * @return void
112
112
* @throws Exception
113
+ *
114
+ * @return void
113
115
*/
114
116
public function wakeup (VarnishableModel $ model ): void
115
117
{
Original file line number Diff line number Diff line change @@ -33,6 +33,7 @@ class VarnishableService
33
33
* Class constructor.
34
34
*
35
35
* @param \GuzzleHttp\Client $guzzle
36
+ *
36
37
* @throws \Psr\Container\ContainerExceptionInterface
37
38
* @throws \Psr\Container\NotFoundExceptionInterface
38
39
*/
@@ -71,9 +72,10 @@ public function getGuzzle(): Client
71
72
/**
72
73
* Load the configurations.
73
74
*
74
- * @return void
75
75
* @throws \Psr\Container\ContainerExceptionInterface
76
76
* @throws \Psr\Container\NotFoundExceptionInterface
77
+ *
78
+ * @return void
77
79
*/
78
80
public function loadConfig (): void
79
81
{
You can’t perform that action at this time.
0 commit comments