File "ConnectBearer.php"
Full Path: /home/siazco/grocery.siazco.se/wp-content/plugins/woocommerce-paypal-payments/modules/ppcp-api-client/src/Authentication/ConnectBearer.php
File size: 565 bytes
MIME-type: text/x-php
Charset: utf-8
<?php
/**
* The connect dummy bearer.
*
* @package WooCommerce\PayPalCommerce\ApiClient\Authentication
*/
declare(strict_types=1);
namespace WooCommerce\PayPalCommerce\ApiClient\Authentication;
use WooCommerce\PayPalCommerce\ApiClient\Entity\Token;
/**
* Class ConnectBearer
*/
class ConnectBearer implements Bearer {
/**
* Returns the bearer.
*
* @return Token
*/
public function bearer(): Token {
$data = (object) array(
'created' => time(),
'expires_in' => 3600,
'token' => 'token',
);
return new Token( $data );
}
}