first commit

This commit is contained in:
2024-04-01 09:54:43 +08:00
commit 899d816bc3
795 changed files with 130040 additions and 0 deletions

View File

@@ -0,0 +1,44 @@
<?php
namespace Yeepay\Yop\Sdk\Model;
abstract class BaseResponse
{
/**
* @var YopResponseMetadata
*/
private $metadata;
/**
* BaseResponse constructor.
*/
public function __construct()
{
$this->metadata = $this->getMetaDataInstance();
}
/**
* @return YopResponseMetadata
*/
public function getMetadata()
{
return $this->metadata;
}
/**
* @return YopResponseMetadata
*/
protected function getMetaDataInstance()
{
return new YopResponseMetadata();
}
abstract function getResultClass();
/**
* @param mixed $result
*/
abstract function setResult($result);
}