File tree Expand file tree Collapse file tree 3 files changed +3
-18
lines changed Expand file tree Collapse file tree 3 files changed +3
-18
lines changed Original file line number Diff line number Diff line change 10
10
11
11
/**
12
12
* @internal
13
- * @psalm-internal
13
+ * @psalm-internal Aspectus
14
14
*/
15
15
final class Runtime implements Component
16
16
{
@@ -35,10 +35,4 @@ public function view(): string
35
35
{
36
36
return $ this ->component ->view ();
37
37
}
38
-
39
- public function subscribes (): array
40
- {
41
- return $ this ->component ->subscribes ();
42
- }
43
-
44
38
}
Original file line number Diff line number Diff line change 2
2
3
3
namespace Aspectus ;
4
4
5
-
6
5
interface Model
7
6
{
8
7
/**
@@ -14,13 +13,5 @@ interface Model
14
13
* @todo Maybe the message returned here is a command only which needs to be queued for the next iteration ?
15
14
* Not sure, as if we have a SKIP_RENDER one it shouldnt be..
16
15
*/
17
- public function update (Message $ message ): ?Message ;
18
-
19
- /**
20
- * Returns a list of all the Message types that this model is interested in
21
- * All children collaborators should be asked as well and returned
22
- *
23
- * @return string[]
24
- */
25
- // public function subscribes(): array;
16
+ public function update (?Message $ message ): ?Message ;
26
17
}
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ public function __construct(
15
15
16
16
public function render (Component $ component ): void
17
17
{
18
- $ this ->xterm ->write ($ component ->view ($ component ))
18
+ $ this ->xterm ->write ($ component ->view ())
19
19
->flush (); // thats self-referential here :D visitor maybe?
20
20
}
21
21
}
You can’t perform that action at this time.
0 commit comments