Completed
Branch 2.x (59be6b)
by Julián
11:20
created

TokenTrait::setToken()

Size

Total Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 1
c 0
b 0
f 0
nc 1
1
<?php
2
3
/*
4
 * Unified push notification services abstraction (http://github.com/juliangut/tify).
5
 *
6
 * @license BSD-3-Clause
7
 * @link https://github.com/juliangut/tify
8
 * @author Julián Gutiérrez <[email protected]>
9
 */
10
11
namespace Jgut\Tify\Receiver\Traits;
12
13
/**
14
 * Token aware trait.
15
 */
16
trait TokenTrait
17
{
18
    /**
19
     * Receiver token.
20
     *
21
     * @var string
22
     */
23
    protected $token;
24
25
    /**
26
     * Get token.
27
     *
28
     * @return string
29
     */
30
    public function getToken()
31
    {
32
        return $this->token;
33
    }
34
35
    /**
36
     * Set token.
37
     *
38
     * @param string $token
39
     */
40
    abstract public function setToken($token);
41
}
42