You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
yanzong/vendor/aliyuncs/oss-sdk-php/tests/OSS/Tests/StsBase.php

33 lines
564 B

<?php
namespace OSS\Tests;
class StsBase
{
protected $SignatureVersion = "1.0";
protected $Version = "2015-04-01";
protected $Timestamp;
protected $SignatureMethod = "HMAC-SHA1";
protected $Format = "JSON";
protected $AccessKeyId;
protected $SignatureNonce;
private $Signature;
public function __set($name, $value)
{
$this->$name = $value;
}
public function __construct()
{
$this->Timestamp = gmdate('Y-m-d\TH:i:s\Z');
$this->SignatureNonce = time().rand(10000,99999);
}
}