first commit

This commit is contained in:
2024-11-11 18:46:54 +01:00
commit a630d17338
25634 changed files with 4923715 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;
}
}