first commit

This commit is contained in:
2025-08-02 16:30:27 +02:00
commit 23646bfcee
14851 changed files with 1750626 additions and 0 deletions

View File

@@ -0,0 +1,29 @@
<?php
namespace KupShop\ComponentsBundle\Entity;
class ObjectInfo
{
public function __construct(
public string $type,
public int $id,
public string $name,
public ?array $placeholders = null,
) {
}
public function asArray(): array
{
$objInfo = [
'type' => $this->type,
'id' => $this->id,
'name' => $this->name,
];
if ($this->placeholders) {
$objInfo['placeholders'] = $this->placeholders;
}
return $objInfo;
}
}