LocalTokensRepository.php 365 Bytes
Newer Older
Jacob Priddy's avatar
Jacob Priddy committed
1
2
3
4
5
6
7
8
9
10
11
12
<?php


namespace Source\Gateways\Tokens;


use Carbon\Carbon;
use Source\Entities\Token;

class LocalTokensRepository extends InMemoryTokensRepository {
    public function __construct() {
        $this->tokens[] = new Token(1, 1, 'token_string', 'basic token');
Jacob Priddy's avatar
Jacob Priddy committed
13
        $this->tokens[] = new Token(2, 420, 'expired_token', '', Carbon::now()->subDays(3));
Jacob Priddy's avatar
Jacob Priddy committed
14
15
    }
}