File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -22,23 +22,23 @@ public function __construct()
22
22
$ this ->observers = new SplObjectStorage ();
23
23
}
24
24
25
- public function attach (SplObserver $ observer )
25
+ public function attach (SplObserver $ observer ): void
26
26
{
27
27
$ this ->observers ->attach ($ observer );
28
28
}
29
29
30
- public function detach (SplObserver $ observer )
30
+ public function detach (SplObserver $ observer ): void
31
31
{
32
32
$ this ->observers ->detach ($ observer );
33
33
}
34
34
35
- public function changeEmail (string $ email )
35
+ public function changeEmail (string $ email ): void
36
36
{
37
37
$ this ->email = $ email ;
38
38
$ this ->notify ();
39
39
}
40
40
41
- public function notify ()
41
+ public function notify (): void
42
42
{
43
43
/** @var SplObserver $observer */
44
44
foreach ($ this ->observers as $ observer ) {
You can’t perform that action at this time.
0 commit comments