File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -18,11 +18,11 @@ public function __construct(private string $name)
18
18
{
19
19
}
20
20
21
- public function render (string $ font ): string
21
+ public function render (string $ extrinsicState ): string
22
22
{
23
23
// Clients supply the context-dependent information that the flyweight needs to draw itself
24
24
// For flyweights representing characters, extrinsic state usually contains e.g. the font.
25
25
26
- return sprintf ('Character %s with font %s ' , $ this ->name , $ font );
26
+ return sprintf ('Character %s with font %s ' , $ this ->name , $ extrinsicState );
27
27
}
28
28
}
Original file line number Diff line number Diff line change @@ -8,8 +8,8 @@ public function __construct(private string $name)
8
8
{
9
9
}
10
10
11
- public function render (string $ font ): string
11
+ public function render (string $ extrinsicState ): string
12
12
{
13
- return sprintf ('Word %s with font %s ' , $ this ->name , $ font );
13
+ return sprintf ('Word %s with font %s ' , $ this ->name , $ extrinsicState );
14
14
}
15
15
}
You can’t perform that action at this time.
0 commit comments