1 | <?php |
||
27 | abstract class AbstractCardTwigExtension extends AbstractTwigExtension { |
||
28 | |||
29 | use TypographyTwigExtensionTrait; |
||
30 | |||
31 | /** |
||
32 | * Constructor. |
||
33 | * |
||
34 | * @param Environment $twigEnvironment The Twig environment. |
||
35 | * @param TypographyTwigExtension $typographyTwigExtension The Typography Twig extension. |
||
36 | */ |
||
37 | public function __construct(Environment $twigEnvironment, TypographyTwigExtension $typographyTwigExtension) { |
||
41 | |||
42 | /** |
||
43 | * Displays an AdminBSB card header. |
||
44 | * |
||
45 | * @param string $content The content. |
||
46 | * @param string|null $description The description. |
||
47 | * @param string|null $icon The icon. |
||
48 | * @return string Returns the AdminBSB card header. |
||
49 | */ |
||
50 | protected function adminBSBCardHeader(string $content, ?string $description, ?string $icon): string { |
||
62 | } |
||
63 |
Unless you are absolutely sure that the expression can never be null because of other conditions, we strongly recommend to add an additional type check to your code: