Gestionnaire de fichiers - Editer - /home/wwgoat/public_html/blog/wp-content/plugins/simple-membership/lib/braintree/lib/Braintree/MultipleValueNode.php
Arrière
<?php namespace Braintree; use InvalidArgumentException; class MultipleValueNode { public function __construct($name, $allowedValues = []) { $this->name = $name; $this->items = []; $this->allowedValues = $allowedValues; } public function in($values) { $bad_values = array_diff($values, $this->allowedValues); if (count($this->allowedValues) > 0 && count($bad_values) > 0) { $message = 'Invalid argument(s) for ' . $this->name . ':'; foreach ($bad_values AS $bad_value) { $message .= ' ' . $bad_value; } throw new InvalidArgumentException($message); } $this->items = $values; return $this; } public function is($value) { return $this->in([$value]); } public function toParam() { return $this->items; } } class_alias('Braintree\MultipleValueNode', 'Braintree_MultipleValueNode');
| ver. 1.4 |
Github
|
.
| PHP 8.0.30 | Génération de la page: 0.03 |
proxy
|
phpinfo
|
Réglages