12345678910111213141516171819202122232425262728293031323334353637383940 |
- <?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;
- }
- }
|