Skip to content

Commit a80d8df

Browse files
committed
minor changes
1 parent e4519af commit a80d8df

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/TwigComponent/src/Attribute/TwigComponent.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
<?php
22

3-
namespace Symfony\UX\TwigComponent\Attribute;
4-
53
/*
64
* This file is part of the Symfony package.
75
*
@@ -11,6 +9,8 @@
119
* file that was distributed with this source code.
1210
*/
1311

12+
namespace Symfony\UX\TwigComponent\Attribute;
13+
1414
/**
1515
* @author Kevin Bond <kevinbond@gmail.com>
1616
*
@@ -28,20 +28,20 @@ public function __construct(string $name, ?string $template = null)
2828
$this->template = $template;
2929
}
3030

31-
public function getName(): string
31+
final public function getName(): string
3232
{
3333
return $this->name;
3434
}
3535

36-
public function getTemplate(): string
36+
final public function getTemplate(): string
3737
{
3838
return $this->template ?? "components/{$this->name}.html.twig";
3939
}
4040

4141
/**
4242
* @internal
4343
*/
44-
public static function forClass(string $class): ?self
44+
final public static function forClass(string $class): ?static
4545
{
4646
$class = new \ReflectionClass($class);
4747

0 commit comments

Comments
 (0)