@@ -14,56 +14,56 @@ |
||
14 | 14 | */ |
15 | 15 | class EmailAddress |
16 | 16 | { |
17 | - /** |
|
18 | - * @var string $email_address |
|
19 | - */ |
|
20 | - private $email_address; |
|
17 | + /** |
|
18 | + * @var string $email_address |
|
19 | + */ |
|
20 | + private $email_address; |
|
21 | 21 | |
22 | 22 | |
23 | - /** |
|
24 | - * EmailAddress constructor. |
|
25 | - * |
|
26 | - * @param string $email_address |
|
27 | - * @param EmailValidatorInterface $validator |
|
28 | - * @throws EmailValidationException |
|
29 | - */ |
|
30 | - public function __construct($email_address, EmailValidatorInterface $validator) |
|
31 | - { |
|
32 | - $validator->validate($email_address); |
|
33 | - $this->email_address = $email_address; |
|
34 | - } |
|
23 | + /** |
|
24 | + * EmailAddress constructor. |
|
25 | + * |
|
26 | + * @param string $email_address |
|
27 | + * @param EmailValidatorInterface $validator |
|
28 | + * @throws EmailValidationException |
|
29 | + */ |
|
30 | + public function __construct($email_address, EmailValidatorInterface $validator) |
|
31 | + { |
|
32 | + $validator->validate($email_address); |
|
33 | + $this->email_address = $email_address; |
|
34 | + } |
|
35 | 35 | |
36 | 36 | |
37 | - /** |
|
38 | - * returns the string value for this EmailAddress |
|
39 | - * |
|
40 | - * @return string |
|
41 | - */ |
|
42 | - public function get() |
|
43 | - { |
|
44 | - return $this->email_address; |
|
45 | - } |
|
37 | + /** |
|
38 | + * returns the string value for this EmailAddress |
|
39 | + * |
|
40 | + * @return string |
|
41 | + */ |
|
42 | + public function get() |
|
43 | + { |
|
44 | + return $this->email_address; |
|
45 | + } |
|
46 | 46 | |
47 | 47 | |
48 | - /** |
|
49 | - * compare another EmailAddress to this one to determine if they are the same |
|
50 | - * |
|
51 | - * @param EmailAddress $address |
|
52 | - * @return bool |
|
53 | - */ |
|
54 | - public function equals(EmailAddress $address) |
|
55 | - { |
|
56 | - return strtolower((string) $this) === strtolower((string) $address); |
|
57 | - } |
|
48 | + /** |
|
49 | + * compare another EmailAddress to this one to determine if they are the same |
|
50 | + * |
|
51 | + * @param EmailAddress $address |
|
52 | + * @return bool |
|
53 | + */ |
|
54 | + public function equals(EmailAddress $address) |
|
55 | + { |
|
56 | + return strtolower((string) $this) === strtolower((string) $address); |
|
57 | + } |
|
58 | 58 | |
59 | 59 | |
60 | - /** |
|
61 | - * allows an EmailAddress object to be used as a string |
|
62 | - * |
|
63 | - * @return string |
|
64 | - */ |
|
65 | - public function __toString() |
|
66 | - { |
|
67 | - return $this->email_address; |
|
68 | - } |
|
60 | + /** |
|
61 | + * allows an EmailAddress object to be used as a string |
|
62 | + * |
|
63 | + * @return string |
|
64 | + */ |
|
65 | + public function __toString() |
|
66 | + { |
|
67 | + return $this->email_address; |
|
68 | + } |
|
69 | 69 | } |
@@ -16,34 +16,34 @@ |
||
16 | 16 | */ |
17 | 17 | class Windows1252 extends FormatterBase |
18 | 18 | { |
19 | - /** |
|
20 | - * Converts the string to windows-1252 encoding. |
|
21 | - * |
|
22 | - * @param string|int|float $input anything easily cast into a string |
|
23 | - * @return string |
|
24 | - */ |
|
25 | - public function format($input) |
|
26 | - { |
|
27 | - // in case an int or float etc was passed in |
|
28 | - $input = (string) $input; |
|
29 | - if (function_exists('iconv')) { |
|
30 | - $input = iconv('utf-8', 'cp1252//TRANSLIT', $input); |
|
31 | - } elseif (WP_DEBUG) { |
|
32 | - trigger_error( |
|
33 | - sprintf( |
|
34 | - // @codingStandardsIgnoreStart |
|
35 | - esc_html__( |
|
36 | - '%1$s could not format the string "%2$s" because the function "%3$s" does not exist. Please verify PHP is installed with this function, see %4$s', |
|
37 | - 'event_espresso' |
|
38 | - ), |
|
39 | - // @codingStandardsIgnoreEnd |
|
40 | - get_class($this), |
|
41 | - $input, |
|
42 | - 'iconv', |
|
43 | - '<a href="http://php.net/manual/en/iconv.installation.php">http://php.net/manual/en/iconv.installation.php</a>' |
|
44 | - ) |
|
45 | - ); |
|
46 | - } |
|
47 | - return $input; |
|
48 | - } |
|
19 | + /** |
|
20 | + * Converts the string to windows-1252 encoding. |
|
21 | + * |
|
22 | + * @param string|int|float $input anything easily cast into a string |
|
23 | + * @return string |
|
24 | + */ |
|
25 | + public function format($input) |
|
26 | + { |
|
27 | + // in case an int or float etc was passed in |
|
28 | + $input = (string) $input; |
|
29 | + if (function_exists('iconv')) { |
|
30 | + $input = iconv('utf-8', 'cp1252//TRANSLIT', $input); |
|
31 | + } elseif (WP_DEBUG) { |
|
32 | + trigger_error( |
|
33 | + sprintf( |
|
34 | + // @codingStandardsIgnoreStart |
|
35 | + esc_html__( |
|
36 | + '%1$s could not format the string "%2$s" because the function "%3$s" does not exist. Please verify PHP is installed with this function, see %4$s', |
|
37 | + 'event_espresso' |
|
38 | + ), |
|
39 | + // @codingStandardsIgnoreEnd |
|
40 | + get_class($this), |
|
41 | + $input, |
|
42 | + 'iconv', |
|
43 | + '<a href="http://php.net/manual/en/iconv.installation.php">http://php.net/manual/en/iconv.installation.php</a>' |
|
44 | + ) |
|
45 | + ); |
|
46 | + } |
|
47 | + return $input; |
|
48 | + } |
|
49 | 49 | } |
@@ -14,26 +14,26 @@ |
||
14 | 14 | */ |
15 | 15 | class LeaveAlone extends FormatterBase |
16 | 16 | { |
17 | - /** |
|
18 | - * Removes the emojis from the inputted string |
|
19 | - * |
|
20 | - * @param string|int|float $input anything easily cast into a string |
|
21 | - * @return string |
|
22 | - * @throws InvalidDataTypeException if $input is not a string |
|
23 | - */ |
|
24 | - public function format($input) |
|
25 | - { |
|
26 | - return $input; |
|
27 | - } |
|
17 | + /** |
|
18 | + * Removes the emojis from the inputted string |
|
19 | + * |
|
20 | + * @param string|int|float $input anything easily cast into a string |
|
21 | + * @return string |
|
22 | + * @throws InvalidDataTypeException if $input is not a string |
|
23 | + */ |
|
24 | + public function format($input) |
|
25 | + { |
|
26 | + return $input; |
|
27 | + } |
|
28 | 28 | |
29 | - /** |
|
30 | - * Just returns the inputted $input array |
|
31 | - * |
|
32 | - * @param array $input |
|
33 | - * @return array |
|
34 | - */ |
|
35 | - public function formatArray($input) |
|
36 | - { |
|
37 | - return $input; |
|
38 | - } |
|
29 | + /** |
|
30 | + * Just returns the inputted $input array |
|
31 | + * |
|
32 | + * @param array $input |
|
33 | + * @return array |
|
34 | + */ |
|
35 | + public function formatArray($input) |
|
36 | + { |
|
37 | + return $input; |
|
38 | + } |
|
39 | 39 | } |
@@ -12,21 +12,21 @@ |
||
12 | 12 | */ |
13 | 13 | interface FormatterInterface |
14 | 14 | { |
15 | - /** |
|
16 | - * Applies the formatting to all items in the array |
|
17 | - * |
|
18 | - * @param array $input accepts a multi-dimensional array, but all "leaf nodes" are easily cast to a string |
|
19 | - * @return array |
|
20 | - */ |
|
21 | - public function formatArray($input); |
|
15 | + /** |
|
16 | + * Applies the formatting to all items in the array |
|
17 | + * |
|
18 | + * @param array $input accepts a multi-dimensional array, but all "leaf nodes" are easily cast to a string |
|
19 | + * @return array |
|
20 | + */ |
|
21 | + public function formatArray($input); |
|
22 | 22 | |
23 | 23 | |
24 | 24 | |
25 | - /** |
|
26 | - * Formats the string |
|
27 | - * |
|
28 | - * @param string|int|float $input anything easily cast into a string |
|
29 | - * @return string |
|
30 | - */ |
|
31 | - public function format($input); |
|
25 | + /** |
|
26 | + * Formats the string |
|
27 | + * |
|
28 | + * @param string|int|float $input anything easily cast into a string |
|
29 | + * @return string |
|
30 | + */ |
|
31 | + public function format($input); |
|
32 | 32 | } |
@@ -12,18 +12,18 @@ |
||
12 | 12 | */ |
13 | 13 | class Utils |
14 | 14 | { |
15 | - /** |
|
16 | - * Given a string, formats it as GraphQL ENUM value |
|
17 | - * |
|
18 | - * @param string $str The string to format |
|
19 | - * |
|
20 | - * @return string |
|
21 | - */ |
|
22 | - public static function formatEnumKey($str) |
|
23 | - { |
|
24 | - // Replace any non-alph-anumeric by underscore |
|
25 | - $str = preg_replace('/[^a-zA-Z0-9]/', '_', $str); |
|
26 | - // Convert to uppercase. |
|
27 | - return strtoupper($str); |
|
28 | - } |
|
15 | + /** |
|
16 | + * Given a string, formats it as GraphQL ENUM value |
|
17 | + * |
|
18 | + * @param string $str The string to format |
|
19 | + * |
|
20 | + * @return string |
|
21 | + */ |
|
22 | + public static function formatEnumKey($str) |
|
23 | + { |
|
24 | + // Replace any non-alph-anumeric by underscore |
|
25 | + $str = preg_replace('/[^a-zA-Z0-9]/', '_', $str); |
|
26 | + // Convert to uppercase. |
|
27 | + return strtoupper($str); |
|
28 | + } |
|
29 | 29 | } |
@@ -14,22 +14,22 @@ |
||
14 | 14 | */ |
15 | 15 | abstract class ConnectionBase implements ConnectionInterface |
16 | 16 | { |
17 | - /** |
|
18 | - * @var EEM_Base $model |
|
19 | - */ |
|
20 | - protected $model; |
|
17 | + /** |
|
18 | + * @var EEM_Base $model |
|
19 | + */ |
|
20 | + protected $model; |
|
21 | 21 | |
22 | - /** |
|
23 | - * @var string $namespace The graphql namespace/prefix. |
|
24 | - */ |
|
25 | - protected $namespace = 'Espresso'; |
|
22 | + /** |
|
23 | + * @var string $namespace The graphql namespace/prefix. |
|
24 | + */ |
|
25 | + protected $namespace = 'Espresso'; |
|
26 | 26 | |
27 | 27 | |
28 | - /** |
|
29 | - * @param EEM_Base $model |
|
30 | - */ |
|
31 | - public function __construct(EEM_Base $model) |
|
32 | - { |
|
33 | - $this->model = $model; |
|
34 | - } |
|
28 | + /** |
|
29 | + * @param EEM_Base $model |
|
30 | + */ |
|
31 | + public function __construct(EEM_Base $model) |
|
32 | + { |
|
33 | + $this->model = $model; |
|
34 | + } |
|
35 | 35 | } |
@@ -12,91 +12,91 @@ |
||
12 | 12 | */ |
13 | 13 | abstract class EnumBase implements EnumInterface |
14 | 14 | { |
15 | - /** |
|
16 | - * @var string $namespace The graphql namespace/prefix. |
|
17 | - */ |
|
18 | - protected $namespace = 'Espresso'; |
|
19 | - |
|
20 | - /** |
|
21 | - * @var string $name |
|
22 | - */ |
|
23 | - protected $name = ''; |
|
24 | - |
|
25 | - /** |
|
26 | - * @var string $description |
|
27 | - */ |
|
28 | - protected $description = ''; |
|
29 | - |
|
30 | - /** |
|
31 | - * @var array $values |
|
32 | - */ |
|
33 | - protected $values = []; |
|
34 | - |
|
35 | - /** |
|
36 | - * EnumBase constructor. |
|
37 | - */ |
|
38 | - public function __construct() |
|
39 | - { |
|
40 | - $this->setValues($this->getValues()); |
|
41 | - } |
|
42 | - |
|
43 | - |
|
44 | - /** |
|
45 | - * @return array |
|
46 | - */ |
|
47 | - abstract protected function getValues(): array; |
|
48 | - |
|
49 | - |
|
50 | - /** |
|
51 | - * @return string |
|
52 | - */ |
|
53 | - public function name(): string |
|
54 | - { |
|
55 | - return $this->name; |
|
56 | - } |
|
57 | - |
|
58 | - |
|
59 | - /** |
|
60 | - * @param string $name |
|
61 | - */ |
|
62 | - protected function setName(string $name) |
|
63 | - { |
|
64 | - $this->name = $name; |
|
65 | - } |
|
66 | - |
|
67 | - |
|
68 | - /** |
|
69 | - * @return string |
|
70 | - */ |
|
71 | - public function description(): string |
|
72 | - { |
|
73 | - return $this->description; |
|
74 | - } |
|
75 | - |
|
76 | - |
|
77 | - /** |
|
78 | - * @param string $description |
|
79 | - */ |
|
80 | - protected function setDescription(string $description) |
|
81 | - { |
|
82 | - $this->description = $description; |
|
83 | - } |
|
84 | - |
|
85 | - |
|
86 | - /** |
|
87 | - * @return array |
|
88 | - */ |
|
89 | - public function values(): array |
|
90 | - { |
|
91 | - return $this->values; |
|
92 | - } |
|
93 | - |
|
94 | - |
|
95 | - /** |
|
96 | - * @param array $values |
|
97 | - */ |
|
98 | - protected function setValues(array $values) |
|
99 | - { |
|
100 | - $this->values = $values; |
|
101 | - } |
|
15 | + /** |
|
16 | + * @var string $namespace The graphql namespace/prefix. |
|
17 | + */ |
|
18 | + protected $namespace = 'Espresso'; |
|
19 | + |
|
20 | + /** |
|
21 | + * @var string $name |
|
22 | + */ |
|
23 | + protected $name = ''; |
|
24 | + |
|
25 | + /** |
|
26 | + * @var string $description |
|
27 | + */ |
|
28 | + protected $description = ''; |
|
29 | + |
|
30 | + /** |
|
31 | + * @var array $values |
|
32 | + */ |
|
33 | + protected $values = []; |
|
34 | + |
|
35 | + /** |
|
36 | + * EnumBase constructor. |
|
37 | + */ |
|
38 | + public function __construct() |
|
39 | + { |
|
40 | + $this->setValues($this->getValues()); |
|
41 | + } |
|
42 | + |
|
43 | + |
|
44 | + /** |
|
45 | + * @return array |
|
46 | + */ |
|
47 | + abstract protected function getValues(): array; |
|
48 | + |
|
49 | + |
|
50 | + /** |
|
51 | + * @return string |
|
52 | + */ |
|
53 | + public function name(): string |
|
54 | + { |
|
55 | + return $this->name; |
|
56 | + } |
|
57 | + |
|
58 | + |
|
59 | + /** |
|
60 | + * @param string $name |
|
61 | + */ |
|
62 | + protected function setName(string $name) |
|
63 | + { |
|
64 | + $this->name = $name; |
|
65 | + } |
|
66 | + |
|
67 | + |
|
68 | + /** |
|
69 | + * @return string |
|
70 | + */ |
|
71 | + public function description(): string |
|
72 | + { |
|
73 | + return $this->description; |
|
74 | + } |
|
75 | + |
|
76 | + |
|
77 | + /** |
|
78 | + * @param string $description |
|
79 | + */ |
|
80 | + protected function setDescription(string $description) |
|
81 | + { |
|
82 | + $this->description = $description; |
|
83 | + } |
|
84 | + |
|
85 | + |
|
86 | + /** |
|
87 | + * @return array |
|
88 | + */ |
|
89 | + public function values(): array |
|
90 | + { |
|
91 | + return $this->values; |
|
92 | + } |
|
93 | + |
|
94 | + |
|
95 | + /** |
|
96 | + * @param array $values |
|
97 | + */ |
|
98 | + protected function setValues(array $values) |
|
99 | + { |
|
100 | + $this->values = $values; |
|
101 | + } |
|
102 | 102 | } |
@@ -15,100 +15,100 @@ |
||
15 | 15 | */ |
16 | 16 | interface GraphQLFieldInterface |
17 | 17 | { |
18 | - /** |
|
19 | - * @return array |
|
20 | - */ |
|
21 | - public function caps(); |
|
22 | - |
|
23 | - |
|
24 | - /** |
|
25 | - * @return string |
|
26 | - */ |
|
27 | - public function description(); |
|
28 | - |
|
29 | - |
|
30 | - /** |
|
31 | - * @return string |
|
32 | - */ |
|
33 | - public function key(); |
|
34 | - |
|
35 | - |
|
36 | - /** |
|
37 | - * @return string |
|
38 | - */ |
|
39 | - public function name(); |
|
40 | - |
|
41 | - |
|
42 | - /** |
|
43 | - * @return string|string[] |
|
44 | - */ |
|
45 | - public function type(); |
|
46 | - |
|
47 | - |
|
48 | - /** |
|
49 | - * Convert the field to array to be |
|
50 | - * able to pass as config to WP GraphQL |
|
51 | - * |
|
52 | - * @return array |
|
53 | - */ |
|
54 | - public function toArray(); |
|
55 | - |
|
56 | - |
|
57 | - /** |
|
58 | - * Whether the field should be used for |
|
59 | - * mutation inputs. |
|
60 | - * |
|
61 | - * @return bool |
|
62 | - */ |
|
63 | - public function useForInput(); |
|
64 | - |
|
65 | - |
|
66 | - /** |
|
67 | - * Whether the field should be used for |
|
68 | - * query outputs. |
|
69 | - * |
|
70 | - * @return bool |
|
71 | - */ |
|
72 | - public function useForOutput(); |
|
73 | - |
|
74 | - |
|
75 | - /** |
|
76 | - * Whether the field should resolve |
|
77 | - * based on the user caps etc. |
|
78 | - * |
|
79 | - * @return boolean |
|
80 | - */ |
|
81 | - public function shouldResolve(); |
|
82 | - |
|
83 | - |
|
84 | - /** |
|
85 | - * Whether the field has an explicit resolver set. |
|
86 | - * |
|
87 | - * @return boolean |
|
88 | - */ |
|
89 | - public function hasInternalResolver(); |
|
90 | - |
|
91 | - |
|
92 | - /** |
|
93 | - * Whether the field has an explicit resolver set. |
|
94 | - * |
|
95 | - * @param mixed $source The source that's passed down the GraphQL queries |
|
96 | - * @param array $args The inputArgs on the field |
|
97 | - * @param AppContext $context The AppContext passed down the GraphQL tree |
|
98 | - * @param ResolveInfo $info The ResolveInfo passed down the GraphQL tree |
|
99 | - * @return mixed |
|
100 | - * @throws LogicException |
|
101 | - */ |
|
102 | - public function resolve($source, array $args, AppContext $context, ResolveInfo $info); |
|
103 | - |
|
104 | - |
|
105 | - /** |
|
106 | - * Checks if the format callback is set. |
|
107 | - * If yes, then uses it to format the value. |
|
108 | - * |
|
109 | - * @param mixed $value |
|
110 | - * @param EE_Base_Class $source |
|
111 | - * @return mixed The formatted value. |
|
112 | - */ |
|
113 | - public function mayBeFormatValue($value, EE_Base_Class $source); |
|
18 | + /** |
|
19 | + * @return array |
|
20 | + */ |
|
21 | + public function caps(); |
|
22 | + |
|
23 | + |
|
24 | + /** |
|
25 | + * @return string |
|
26 | + */ |
|
27 | + public function description(); |
|
28 | + |
|
29 | + |
|
30 | + /** |
|
31 | + * @return string |
|
32 | + */ |
|
33 | + public function key(); |
|
34 | + |
|
35 | + |
|
36 | + /** |
|
37 | + * @return string |
|
38 | + */ |
|
39 | + public function name(); |
|
40 | + |
|
41 | + |
|
42 | + /** |
|
43 | + * @return string|string[] |
|
44 | + */ |
|
45 | + public function type(); |
|
46 | + |
|
47 | + |
|
48 | + /** |
|
49 | + * Convert the field to array to be |
|
50 | + * able to pass as config to WP GraphQL |
|
51 | + * |
|
52 | + * @return array |
|
53 | + */ |
|
54 | + public function toArray(); |
|
55 | + |
|
56 | + |
|
57 | + /** |
|
58 | + * Whether the field should be used for |
|
59 | + * mutation inputs. |
|
60 | + * |
|
61 | + * @return bool |
|
62 | + */ |
|
63 | + public function useForInput(); |
|
64 | + |
|
65 | + |
|
66 | + /** |
|
67 | + * Whether the field should be used for |
|
68 | + * query outputs. |
|
69 | + * |
|
70 | + * @return bool |
|
71 | + */ |
|
72 | + public function useForOutput(); |
|
73 | + |
|
74 | + |
|
75 | + /** |
|
76 | + * Whether the field should resolve |
|
77 | + * based on the user caps etc. |
|
78 | + * |
|
79 | + * @return boolean |
|
80 | + */ |
|
81 | + public function shouldResolve(); |
|
82 | + |
|
83 | + |
|
84 | + /** |
|
85 | + * Whether the field has an explicit resolver set. |
|
86 | + * |
|
87 | + * @return boolean |
|
88 | + */ |
|
89 | + public function hasInternalResolver(); |
|
90 | + |
|
91 | + |
|
92 | + /** |
|
93 | + * Whether the field has an explicit resolver set. |
|
94 | + * |
|
95 | + * @param mixed $source The source that's passed down the GraphQL queries |
|
96 | + * @param array $args The inputArgs on the field |
|
97 | + * @param AppContext $context The AppContext passed down the GraphQL tree |
|
98 | + * @param ResolveInfo $info The ResolveInfo passed down the GraphQL tree |
|
99 | + * @return mixed |
|
100 | + * @throws LogicException |
|
101 | + */ |
|
102 | + public function resolve($source, array $args, AppContext $context, ResolveInfo $info); |
|
103 | + |
|
104 | + |
|
105 | + /** |
|
106 | + * Checks if the format callback is set. |
|
107 | + * If yes, then uses it to format the value. |
|
108 | + * |
|
109 | + * @param mixed $value |
|
110 | + * @param EE_Base_Class $source |
|
111 | + * @return mixed The formatted value. |
|
112 | + */ |
|
113 | + public function mayBeFormatValue($value, EE_Base_Class $source); |
|
114 | 114 | } |
@@ -10,37 +10,37 @@ |
||
10 | 10 | */ |
11 | 11 | class GraphQLOutputField extends GraphQLField |
12 | 12 | { |
13 | - /** |
|
14 | - * @param string $name |
|
15 | - * @param string|string[] $type |
|
16 | - * @param string|null $key |
|
17 | - * @param string $description |
|
18 | - * @param callable|null $formatter |
|
19 | - * @param callable|null $resolver |
|
20 | - * @param array $caps |
|
21 | - * @param array $args |
|
22 | - */ |
|
23 | - public function __construct( |
|
24 | - $name, |
|
25 | - $type, |
|
26 | - $key = null, |
|
27 | - $description = '', |
|
28 | - callable $formatter = null, |
|
29 | - callable $resolver = null, |
|
30 | - array $caps = [], |
|
31 | - array $args = [] |
|
32 | - ) { |
|
33 | - parent::__construct( |
|
34 | - $name, |
|
35 | - $type, |
|
36 | - $key, |
|
37 | - $description, |
|
38 | - $formatter, |
|
39 | - $resolver, |
|
40 | - $caps, |
|
41 | - $args |
|
42 | - ); |
|
13 | + /** |
|
14 | + * @param string $name |
|
15 | + * @param string|string[] $type |
|
16 | + * @param string|null $key |
|
17 | + * @param string $description |
|
18 | + * @param callable|null $formatter |
|
19 | + * @param callable|null $resolver |
|
20 | + * @param array $caps |
|
21 | + * @param array $args |
|
22 | + */ |
|
23 | + public function __construct( |
|
24 | + $name, |
|
25 | + $type, |
|
26 | + $key = null, |
|
27 | + $description = '', |
|
28 | + callable $formatter = null, |
|
29 | + callable $resolver = null, |
|
30 | + array $caps = [], |
|
31 | + array $args = [] |
|
32 | + ) { |
|
33 | + parent::__construct( |
|
34 | + $name, |
|
35 | + $type, |
|
36 | + $key, |
|
37 | + $description, |
|
38 | + $formatter, |
|
39 | + $resolver, |
|
40 | + $caps, |
|
41 | + $args |
|
42 | + ); |
|
43 | 43 | |
44 | - $this->setUseForInput(false); |
|
45 | - } |
|
44 | + $this->setUseForInput(false); |
|
45 | + } |
|
46 | 46 | } |