jeyroik/toncenter-php-sdk

View on GitHub
src/components/responses/ResponseGetAddressInformation.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php
namespace tonc\components\responses;

use tonc\components\THasAttributes;
use tonc\interfaces\responses\IResponseGetAddressInformation;
use tonc\components\addresses\AddressInformation;
use tonc\interfaces\addresses\IAddressInformation;

class ResponseGetAddressInformation extends Response implements IResponseGetAddressInformation
{
    use THasAttributes;

    public function __toAddressInformation(): IAddressInformation
    {
        $result = $this->getResult();

        return new AddressInformation($result);
    }
}