Your IP : 216.73.216.43


Current Path : /home/rtorresani/www/vendor/magento/module-payment/Gateway/Command/Result/
Upload File :
Current File : //home/rtorresani/www/vendor/magento/module-payment/Gateway/Command/Result/ArrayResult.php

<?php
/**
 * Copyright © Magento, Inc. All rights reserved.
 * See COPYING.txt for license details.
 */
namespace Magento\Payment\Gateway\Command\Result;

use Magento\Payment\Gateway\Command\ResultInterface;

/**
 * Container for array that should be returned as command result.
 *
 * @api
 * @since 100.0.2
 */
class ArrayResult implements ResultInterface
{
    /**
     * @var array
     */
    private $array;

    /**
     * @param array $array
     */
    public function __construct(array $array = [])
    {
        $this->array = $array;
    }

    /**
     * Returns result interpretation
     *
     * @return array
     */
    public function get()
    {
        return $this->array;
    }
}