Удаление лишних методов

This commit is contained in:
Aleksandra Spiridonova
2021-09-16 16:54:40 +03:00
parent 6a4d7c4e3f
commit 0bc67dbda9
250 changed files with 284 additions and 409 deletions
-25
View File
@@ -73,31 +73,6 @@ class Transfer extends AbstractObject implements TransferInterface
*/
private $_metadata;
/**
* 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['metadata'])) {
$this->setMetadata($data['metadata']);
}
if (!empty($data['platform_fee_amount'])) {
$this->setPlatformFeeAmount($this->factoryAmount($data['platform_fee_amount']));
}
if (!empty($data['status'])) {
$this->setStatus($data['status']);
}
}
}
/**
* @inheritDoc
*/