Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
ResetMethod.php
Go to the documentation of this file.
1 <?php
8 
14 {
16  const OPTION_BY_IP = 2;
17  const OPTION_BY_EMAIL = 3;
18  const OPTION_NONE = 0;
19 
25  public function toOptionArray()
26  {
27  return [
28  ['value' => self::OPTION_BY_IP_AND_EMAIL, 'label' => __('By IP and Email')],
29  ['value' => self::OPTION_BY_IP, 'label' => __('By IP')],
30  ['value' => self::OPTION_BY_EMAIL, 'label' => __('By Email')],
31  ['value' => self::OPTION_NONE, 'label' => __('None')],
32  ];
33  }
34 
40  public function toArray()
41  {
42  return [
43  self::OPTION_BY_IP_AND_EMAIL => __('By IP and Email'),
44  self::OPTION_BY_IP => __('By IP'),
45  self::OPTION_BY_EMAIL => __('By Email'),
46  self::OPTION_NONE => __('None'),
47  ];
48  }
49 }
__()
Definition: __.php:13