Completed
Push — master ( 020c5c...9dbce5 )
by Julián
08:49
created

AbstractReceiver::setToken()

Size

Total Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 1
nc 1
1
<?php
2
/**
3
 * Push notification services abstraction (http://github.com/juliangut/tify)
4
 *
5
 * @link https://github.com/juliangut/tify for the canonical source repository
6
 *
7
 * @license https://github.com/juliangut/tify/blob/master/LICENSE
8
 */
9
10
namespace Jgut\Tify\Receiver;
11
12
/**
13
 * Class AbstractReceiver
14
 */
15
abstract class AbstractReceiver
16
{
17
    /**
18
     * Receiver token.
19
     *
20
     * @var string
21
     */
22
    protected $token;
23
24
    /**
25
     * Constructor.
26
     *
27
     * @param string $token
28
     */
29
    public function __construct($token)
30
    {
31
        $this->setToken($token);
32
    }
33
34
    /**
35
     * Get token.
36
     *
37
     * @return string
38
     */
39
    final public function getToken()
40
    {
41
        return $this->token;
42
    }
43
44
    /**
45
     * Set token.
46
     *
47
     * @param string $token
48
     */
49
    abstract public function setToken($token);
50
}
51