mirror of
https://git.yoomoney.ru/scm/sdk/yookassa-sdk-php.git
synced 2026-08-28 02:58:10 +00:00
Удаление лишних методов
This commit is contained in:
@@ -55,25 +55,6 @@ class Source extends AbstractObject implements SourceInterface
|
||||
*/
|
||||
private $_platform_fee_amount;
|
||||
|
||||
/**
|
||||
* Transfer constructor.
|
||||
* @param array $data
|
||||
*/
|
||||
public function __construct($data = null)
|
||||
{
|
||||
if (isset($data) && is_array($data)) {
|
||||
if (!empty($data['account_id'])) {
|
||||
$this->setAccountId($data['account_id']);
|
||||
}
|
||||
if (!empty($data['amount'])) {
|
||||
$this->setAmount($this->factoryAmount($data['amount']));
|
||||
}
|
||||
if (!empty($data['platform_fee_amount'])) {
|
||||
$this->setPlatformFeeAmount($this->factoryAmount($data['platform_fee_amount']));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user