for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php declare(strict_types=1);
namespace Formularium\Frontend\Vuetify\Element;
use Formularium\Element;
use Formularium\Frontend\HTML\Element\Card as HTMLCard;
use Formularium\HTMLNode;
use Formularium\Metadata;
class Card extends VuetifyElement
{
public function render(array $parameters, HTMLNode $previous): HTMLNode
$atts = [
'class' => 'formularium-card'
];
$contents = [];
if ($parameters[HTMLCard::IMAGE] ?? '') {
$contents[] = new HTMLNode(
'v-img',
[
'src' => $parameters[HTMLCard::IMAGE] ?? '',
]
);
}
if ($parameters[HTMLCard::TITLE] ?? '') {
'v-card-title',
[],
$parameters[HTMLCard::TITLE] ?? ''
return new HTMLNode(
'v-card',
$atts,
new HTMLNode(
'v-card-text',
$parameters[HTMLCard::CONTENT] ?? ''
)
public static function getMetadata(): Metadata
$metadata = HTMLCard::getMetadata();
return $metadata;