JFIF x x C C " } !1AQa "q2#BR$3br %&'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz w !1AQ aq"2B #3Rbr{
File "HasPresetOptions.php"
Full Path: /var/www/laravel_filter/vendor/mollie/mollie-api-php/src/Resources/HasPresetOptions.php
File size: 755 bytes
MIME-type: text/x-php
Charset: utf-8
<?php
namespace Mollie\Api\Resources;
use Mollie\Api\MollieApiClient;
/**
* @property MollieApiClient $client
* @property string $mode
*/
trait HasPresetOptions
{
/**
* When accessed by oAuth we want to pass the testmode by default
*
* @return array
*/
protected function getPresetOptions()
{
$options = [];
if ($this->client->usesOAuth()) {
$options["testmode"] = $this->mode === "test" ? true : false;
}
return $options;
}
/**
* Apply the preset options.
*
* @param array $options
* @return array
*/
protected function withPresetOptions(array $options)
{
return array_merge($this->getPresetOptions(), $options);
}
}