Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
* @api
* @since 100.0.2
*/
class Frequency implements \Magento\Framework\Option\ArrayInterface
class Frequency implements \Magento\Framework\Data\OptionSourceInterface
{
/**
* @return array
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
* @api
* @since 100.0.2
*/
class Options implements \Magento\Framework\Option\ArrayInterface
class Options implements \Magento\Framework\Data\OptionSourceInterface
{
/**
* @var \Magento\Framework\App\RequestInterface
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
* Prepares and provides options for a selector of verticals which is located
* in the corresponding configuration menu of the Admin area.
*/
class Vertical implements \Magento\Framework\Option\ArrayInterface
class Vertical implements \Magento\Framework\Data\OptionSourceInterface
{
/**
* The list of possible verticals.
Expand Down
14 changes: 9 additions & 5 deletions app/code/Magento/Authorizenet/Model/Source/PaymentAction.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,28 +3,32 @@
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/

declare(strict_types=1);

namespace Magento\Authorizenet\Model\Source;

use Magento\Framework\Option\ArrayInterface;
use Magento\Authorizenet\Model\Authorizenet;
use Magento\Framework\Data\OptionSourceInterface;

/**
*
* Authorize.net Payment Action Dropdown source
*/
class PaymentAction implements ArrayInterface
class PaymentAction implements OptionSourceInterface
{
/**
* {@inheritdoc}
*/
public function toOptionArray()
public function toOptionArray(): array
{
return [
[
'value' => \Magento\Authorizenet\Model\Authorizenet::ACTION_AUTHORIZE,
'value' => Authorizenet::ACTION_AUTHORIZE,
'label' => __('Authorize Only'),
],
[
'value' => \Magento\Authorizenet\Model\Authorizenet::ACTION_AUTHORIZE_CAPTURE,
'value' => Authorizenet::ACTION_AUTHORIZE_CAPTURE,
'label' => __('Authorize and Capture')
]
];
Expand Down
2 changes: 1 addition & 1 deletion app/code/Magento/Backup/Model/Config/Source/Type.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
* @api
* @since 100.0.2
*/
class Type implements \Magento\Framework\Option\ArrayInterface
class Type implements \Magento\Framework\Data\OptionSourceInterface
{
/**
* Backup data
Expand Down
2 changes: 1 addition & 1 deletion app/code/Magento/Backup/Model/Grid/Options.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
* @api
* @since 100.0.2
*/
class Options implements \Magento\Framework\Option\ArrayInterface
class Options implements \Magento\Framework\Data\OptionSourceInterface
{
/**
* @var \Magento\Backup\Helper\Data
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@
*/
namespace Magento\Braintree\Model\Adminhtml\Source;

use Magento\Framework\Option\ArrayInterface;
use Magento\Framework\Data\OptionSourceInterface;

/**
* Class Environment
*/
class Environment implements ArrayInterface
class Environment implements OptionSourceInterface
{
const ENVIRONMENT_PRODUCTION = 'production';
const ENVIRONMENT_SANDBOX = 'sandbox';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@
*/
namespace Magento\Braintree\Model\Adminhtml\Source;

use Magento\Framework\Option\ArrayInterface;
use Magento\Framework\Data\OptionSourceInterface;
use Magento\Payment\Model\MethodInterface;

/**
* Class PaymentAction
*/
class PaymentAction implements ArrayInterface
class PaymentAction implements OptionSourceInterface
{
/**
* Possible actions on order place
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@
namespace Magento\Braintree\Model\Adminhtml\System\Config;

use Magento\Directory\Model\ResourceModel\Country\Collection;
use Magento\Framework\Option\ArrayInterface;
use Magento\Framework\Data\OptionSourceInterface;

/**
* Class Country
*/
class Country implements ArrayInterface
class Country implements OptionSourceInterface
{
/**
* @var array
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* @api
* @since 100.0.2
*/
class Type implements \Magento\Framework\Option\ArrayInterface
class Type implements \Magento\Framework\Data\OptionSourceInterface
{
/**
* @return array
Expand Down
4 changes: 2 additions & 2 deletions app/code/Magento/Bundle/Model/Source/Option/Type.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
*
*/
class Type extends \Magento\Framework\Model\AbstractExtensibleModel implements
\Magento\Framework\Option\ArrayInterface,
\Magento\Bundle\Api\Data\OptionTypeInterface
\Magento\Bundle\Api\Data\OptionTypeInterface,
\Magento\Framework\Data\OptionSourceInterface
{
/**#@+
* Constants
Expand Down
2 changes: 1 addition & 1 deletion app/code/Magento/Captcha/Model/Config/Font.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
*/
namespace Magento\Captcha\Model\Config;

class Font implements \Magento\Framework\Option\ArrayInterface
class Font implements \Magento\Framework\Data\OptionSourceInterface
{
/**
* Captcha data
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

use Magento\Framework\App\Config\Value;

abstract class AbstractForm extends Value implements \Magento\Framework\Option\ArrayInterface
abstract class AbstractForm extends Value implements \Magento\Framework\Data\OptionSourceInterface
{
/**
* @var string
Expand Down
2 changes: 1 addition & 1 deletion app/code/Magento/Captcha/Model/Config/Mode.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
*/
namespace Magento\Captcha\Model\Config;

class Mode implements \Magento\Framework\Option\ArrayInterface
class Mode implements \Magento\Framework\Data\OptionSourceInterface
{
/**
* Get options for captcha mode selection field
Expand Down
2 changes: 1 addition & 1 deletion app/code/Magento/Catalog/Model/Config/Source/Category.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
*
* @SuppressWarnings(PHPMD.LongVariable)
*/
class Category implements \Magento\Framework\Option\ArrayInterface
class Category implements \Magento\Framework\Data\OptionSourceInterface
{
/**
* Category collection factory
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
*
* @author Magento Core Team <core@magentocommerce.com>
*/
class GridPerPage implements \Magento\Framework\Option\ArrayInterface
class GridPerPage implements \Magento\Framework\Data\OptionSourceInterface
{
/**
* Options
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
/**
* Returns layout list for Web>Default Layouts>Default Product Layout/Default Category Layout
*/
class LayoutList implements \Magento\Framework\Option\ArrayInterface
class LayoutList implements \Magento\Framework\Data\OptionSourceInterface
{
/**
* @var array
Expand Down
2 changes: 1 addition & 1 deletion app/code/Magento/Catalog/Model/Config/Source/ListMode.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/
namespace Magento\Catalog\Model\Config\Source;

class ListMode implements \Magento\Framework\Option\ArrayInterface
class ListMode implements \Magento\Framework\Data\OptionSourceInterface
{
/**
* {@inheritdoc}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
*
* @author Magento Core Team <core@magentocommerce.com>
*/
class ListPerPage implements \Magento\Framework\Option\ArrayInterface
class ListPerPage implements \Magento\Framework\Data\OptionSourceInterface
{
/**
* Pager Options
Expand Down
2 changes: 1 addition & 1 deletion app/code/Magento/Catalog/Model/Config/Source/ListSort.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
*/
namespace Magento\Catalog\Model\Config\Source;

class ListSort implements \Magento\Framework\Option\ArrayInterface
class ListSort implements \Magento\Framework\Data\OptionSourceInterface
{
/**
* Catalog config
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/
namespace Magento\Catalog\Model\Config\Source\Price;

class Scope implements \Magento\Framework\Option\ArrayInterface
class Scope implements \Magento\Framework\Data\OptionSourceInterface
{
/**
* {@inheritdoc}
Expand Down
4 changes: 2 additions & 2 deletions app/code/Magento/Catalog/Model/Config/Source/Price/Step.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
namespace Magento\Catalog\Model\Config\Source\Price;

use Magento\Catalog\Model\Layer\Filter\Dynamic\AlgorithmFactory;
use Magento\Framework\Option\ArrayInterface;
use Magento\Framework\Data\OptionSourceInterface;

class Step implements ArrayInterface
class Step implements OptionSourceInterface
{
/**
* {@inheritdoc}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
/**
* Product option types mode source
*/
class Type implements \Magento\Framework\Option\ArrayInterface
class Type implements \Magento\Framework\Data\OptionSourceInterface
{
/**
* Product Option Config
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
* Catalog products per page on Grid mode source
*
*/
class Thumbnail implements \Magento\Framework\Option\ArrayInterface
class Thumbnail implements \Magento\Framework\Data\OptionSourceInterface
{
const OPTION_USE_PARENT_IMAGE = 'parent';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/
namespace Magento\Catalog\Model\Config\Source;

class TimeFormat implements \Magento\Framework\Option\ArrayInterface
class TimeFormat implements \Magento\Framework\Data\OptionSourceInterface
{
/**
* {@inheritdoc}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
*/
namespace Magento\Catalog\Model\Config\Source\Watermark;

class Position implements \Magento\Framework\Option\ArrayInterface
class Position implements \Magento\Framework\Data\OptionSourceInterface
{
/**
* Get available options
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* @link https://devdocs.magento.com/guides/v2.3/inventory/index.html
* @link https://devdocs.magento.com/guides/v2.3/inventory/catalog-inventory-replacements.html
*/
class Backorders implements \Magento\Framework\Option\ArrayInterface
class Backorders implements \Magento\Framework\Data\OptionSourceInterface
{
/**
* @return array
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@
*/
namespace Magento\Checkout\Model\Adminhtml;

use Magento\Framework\Option\ArrayInterface;
use Magento\Framework\Data\OptionSourceInterface;

/**
* BillingAddressDisplayOptions gets list of configuration options for billing address displaying on
* the Payment step on checkout
*/
class BillingAddressDisplayOptions implements ArrayInterface
class BillingAddressDisplayOptions implements OptionSourceInterface
{
/**
* Return array of options for billing address displaying on checkout payment step
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/
namespace Magento\Checkout\Model\Config\Source\Cart;

class Summary implements \Magento\Framework\Option\ArrayInterface
class Summary implements \Magento\Framework\Data\OptionSourceInterface
{
/**
* @return array
Expand Down
2 changes: 1 addition & 1 deletion app/code/Magento/Cms/Model/Config/Source/Page.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
/**
* Class Page
*/
class Page implements \Magento\Framework\Option\ArrayInterface
class Page implements \Magento\Framework\Data\OptionSourceInterface
{
/**
* @var array
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
/**
* Configuration source model for Wysiwyg toggling
*/
class Editor implements \Magento\Framework\Option\ArrayInterface
class Editor implements \Magento\Framework\Data\OptionSourceInterface
{
/**
* @var array
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
/**
* Configuration source model for Wysiwyg toggling
*/
class Enabled implements \Magento\Framework\Option\ArrayInterface
class Enabled implements \Magento\Framework\Data\OptionSourceInterface
{
/**
* {@inheritdoc}
Expand Down
2 changes: 1 addition & 1 deletion app/code/Magento/Config/Model/Config/Source/Admin/Page.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
* @api
* @since 100.0.2
*/
class Page implements \Magento\Framework\Option\ArrayInterface
class Page implements \Magento\Framework\Data\OptionSourceInterface
{
/**
* Menu model
Expand Down
2 changes: 1 addition & 1 deletion app/code/Magento/Config/Model/Config/Source/Date/Short.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
* @api
* @since 100.0.2
*/
class Short implements \Magento\Framework\Option\ArrayInterface
class Short implements \Magento\Framework\Data\OptionSourceInterface
{
/**
* @return array
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
* @api
* @since 100.0.2
*/
class Robots implements \Magento\Framework\Option\ArrayInterface
class Robots implements \Magento\Framework\Data\OptionSourceInterface
{
/**
* @return array
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
* @api
* @since 100.0.2
*/
class Dbautoup implements \Magento\Framework\Option\ArrayInterface
class Dbautoup implements \Magento\Framework\Data\OptionSourceInterface
{
/**
* @return array
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
* @api
* @since 100.0.2
*/
class Identity implements \Magento\Framework\Option\ArrayInterface
class Identity implements \Magento\Framework\Data\OptionSourceInterface
{
/**
* Email Identity options
Expand Down
Loading