提交
This commit is contained in:
34
vendor/alibabacloud/oss-v2/tests/UnitTests/Fixtures/RootConfiguration.php
vendored
Normal file
34
vendor/alibabacloud/oss-v2/tests/UnitTests/Fixtures/RootConfiguration.php
vendored
Normal file
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
|
||||
namespace UnitTests\Fixtures;
|
||||
|
||||
use AlibabaCloud\Oss\V2\Types\Model;
|
||||
use AlibabaCloud\Oss\V2\Types\ModelTrait;
|
||||
use AlibabaCloud\Oss\V2\Annotation\XmlElement;
|
||||
use AlibabaCloud\Oss\V2\Annotation\XmlRoot;
|
||||
|
||||
|
||||
#[XmlRoot(name: 'RootConfiguration')]
|
||||
class RootConfiguration extends Model
|
||||
{
|
||||
use ModelTrait;
|
||||
|
||||
#[XmlElement(rename: 'Id', type: 'string')]
|
||||
private ?string $id;
|
||||
|
||||
#[XmlElement(rename: 'Text', type: 'string')]
|
||||
private ?string $text;
|
||||
|
||||
#[XmlElement(rename: 'SubConfiguration', type: SubConfiguration::class)]
|
||||
private ?array $subConfiguration;
|
||||
|
||||
public function __construct(
|
||||
?string $id = null,
|
||||
?string $text = null,
|
||||
?array $subConfiguration = null
|
||||
) {
|
||||
$this->id = $id;
|
||||
$this->text = $text;
|
||||
$this->subConfiguration = $subConfiguration;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user