SuperSeller3000/src/Domain/Channel/Platform.php
Simon Kuehn 6bf001b0c0 feat: implement Plan 2 — Article Management API
- 6 new domain repository interfaces (StoragePath, ArticlePhoto, AttributeValue, ChannelField, ArticleTypePlatformConfig, AttributeMapping)
- 6 Doctrine repository implementations
- StorageManager with multi-path quota-aware file storage (LocalStorageManager)
- Application services: ArticleTypeService, ArticleService, ArticleValidator, PhotoService, PlatformService, MappingService
- REST controllers: ArticleType, Article, Photo, Platform, Mapping (all under /api prefix)
- inventory_number sequence migration
- 22 unit tests passing, PHPStan level 9 clean, CS Fixer clean
- Fixed phpdoc_to_comment CS Fixer rule (disabled) to preserve @var type annotations
- Fixed PHPStan: User::getUserIdentifier non-empty-string, AIPipelineJob nullable missingFields

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-14 05:19:20 +00:00

66 lines
1.3 KiB
PHP

<?php
declare(strict_types=1);
namespace App\Domain\Channel;
use Doctrine\ORM\Mapping as ORM;
use Symfony\Component\Uid\Uuid;
#[ORM\Entity]
#[ORM\Table(name: 'platforms', schema: 'app')]
class Platform
{
#[ORM\Id]
#[ORM\Column(type: 'uuid')]
private Uuid $id;
#[ORM\Column(type: 'string', length: 100, unique: true)]
private string $type;
#[ORM\Column(type: 'string', length: 255)]
private string $label;
/** @var array<string, mixed> */
#[ORM\Column(type: 'json')]
private array $config = [];
public function __construct(string $type, string $label)
{
$this->id = Uuid::v7();
$this->type = $type;
$this->label = $label;
}
public function getId(): Uuid
{
return $this->id;
}
public function getType(): string
{
return $this->type;
}
public function getLabel(): string
{
return $this->label;
}
public function setLabel(string $label): void
{
$this->label = $label;
}
/** @return array<string, mixed> */
public function getConfig(): array
{
return $this->config;
}
/** @param array<string, mixed> $config */
public function setConfig(array $config): void
{
$this->config = $config;
}
}