Completed
Push — master ( 760626...81d11d )
by Carlos
02:46
created

VerifyTicket::setVerifyTicket()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
cc 1
eloc 3
nc 1
nop 1
dl 0
loc 6
rs 9.4285
c 0
b 0
f 0
ccs 0
cts 5
cp 0
crap 2
1
<?php
2
3
/*
4
 * This file is part of the overtrue/wechat.
5
 *
6
 * (c) overtrue <[email protected]>
7
 *
8
 * This source file is subject to the MIT license that is bundled
9
 * with this source code in the file LICENSE.
10
 */
11
12
/**
13
 * Trait VerifyTicket.php.
14
 *
15
 * Part of Overtrue\WeChat.
16
 *
17
 * For the full copyright and license information, please view the LICENSE
18
 * file that was distributed with this source code.
19
 *
20
 * @author    mingyoung <[email protected]>
21
 * @copyright 2016
22
 *
23
 * @see      https://github.com/overtrue
24
 * @see      http://overtrue.me
25
 */
26
27
namespace EasyWeChat\OpenPlatform\Traits;
28
29
use EasyWeChat\OpenPlatform\VerifyTicket as ComponentVerifyTicket;
30
31
trait VerifyTicket
32
{
33
    /**
34
     * Verify Ticket.
35
     *
36
     * @var \EasyWeChat\OpenPlatform\VerifyTicket
37
     */
38
    protected $verifyTicket;
39
40
    /**
41
     * Set verify ticket instance.
42
     *
43
     * @param \EasyWeChat\OpenPlatform\VerifyTicket $verifyTicket
44
     *
45
     * @return $this
46
     */
47
    public function setVerifyTicket(ComponentVerifyTicket $verifyTicket)
48
    {
49
        $this->verifyTicket = $verifyTicket;
50
51
        return $this;
52
    }
53
54
    /**
55
     * Get verify ticket instance.
56
     *
57
     * @return \EasyWeChat\OpenPlatform\VerifyTicket
58
     */
59
    public function getVerifyTicket()
60
    {
61
        return $this->verifyTicket;
62
    }
63
}
64