first commit

This commit is contained in:
2024-10-25 14:16:28 +02:00
commit 925276dbb2
33795 changed files with 4780077 additions and 0 deletions

View File

@@ -0,0 +1,35 @@
<?php
namespace x13allegro\Api\Model\Offers\Description;
use JsonSerializable;
final class SectionItem implements JsonSerializable
{
/** @var string */
public $type;
/** @var string */
public $content;
/** @var string */
public $url;
/**
* @return array
*/
public function jsonSerialize()
{
$fields = [
'type' => $this->type
];
if ($this->type == SectionItemType::TEXT) {
$fields['content'] = $this->content;
} else {
$fields['url'] = $this->url;
}
return $fields;
}
}