File tree 3 files changed +13
-13
lines changed
3 files changed +13
-13
lines changed Original file line number Diff line number Diff line change 29
29
"nette/utils" : " to use filter |webalize"
30
30
},
31
31
"conflict" : {
32
- "nette/application" : " <2.4.1 "
32
+ "nette/application" : " <3.0 "
33
33
},
34
34
"autoload" : {
35
35
"classmap" : [" src/" ]
Original file line number Diff line number Diff line change 16
16
*/
17
17
interface ISnippetBridge
18
18
{
19
- function isSnippetMode ();
19
+ function isSnippetMode (): bool ;
20
20
21
- function setSnippetMode ($ snippetMode );
21
+ function setSnippetMode (bool $ snippetMode );
22
22
23
- function needsRedraw ($ name );
23
+ function needsRedraw (string $ name ): bool ;
24
24
25
- function markRedrawn ($ name );
25
+ function markRedrawn (string $ name ): void ;
26
26
27
- function getHtmlId ($ name );
27
+ function getHtmlId (string $ name ): string ;
28
28
29
- function addSnippet ($ name , $ content );
29
+ function addSnippet (string $ name , string $ content ): void ;
30
30
31
- function renderChildren ();
31
+ function renderChildren (): void ;
32
32
}
Original file line number Diff line number Diff line change @@ -18,33 +18,33 @@ public function isSnippetMode(): bool
18
18
}
19
19
20
20
21
- public function setSnippetMode ($ snippetMode )
21
+ public function setSnippetMode (bool $ snippetMode )
22
22
{
23
23
$ this ->snippetMode = $ snippetMode ;
24
24
}
25
25
26
26
27
- public function needsRedraw ($ name ): bool
27
+ public function needsRedraw (string $ name ): bool
28
28
{
29
29
return $ this ->invalid === true || isset ($ this ->invalid [$ name ]);
30
30
}
31
31
32
32
33
- public function markRedrawn ($ name ): void
33
+ public function markRedrawn (string $ name ): void
34
34
{
35
35
if ($ this ->invalid !== true ) {
36
36
unset($ this ->invalid [$ name ]);
37
37
}
38
38
}
39
39
40
40
41
- public function getHtmlId ($ name ): string
41
+ public function getHtmlId (string $ name ): string
42
42
{
43
43
return $ name ;
44
44
}
45
45
46
46
47
- public function addSnippet ($ name , $ content ): void
47
+ public function addSnippet (string $ name , string $ content ): void
48
48
{
49
49
$ this ->payload [$ name ] = $ content ;
50
50
}
You can’t perform that action at this time.
0 commit comments