GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Completed
Push — master ( 682f51...d8d546 )
by Stan
03:16
created

InlineQueryResultVoice   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 50
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 1
Bugs 0 Features 1
Metric Value
wmc 4
c 1
b 0
f 1
lcom 0
cbo 1
dl 0
loc 50
rs 10

4 Methods

Rating   Name   Duplication   Size   Complexity  
A getVoiceUrl() 0 4 1
A setVoiceUrl() 0 6 1
A getVoiceDuration() 0 4 1
A setVoiceDuration() 0 6 1
1
<?php
2
3
namespace Teebot\Entity\Inline\Result;
4
5
class InlineQueryResultVoice extends InlineQueryResultAbstract
6
{
7
    const ENTITY_TYPE = 'InlineQueryResultVoice';
8
9
    const RESULT_TYPE = 'voice';
10
11
    protected $voice_url;
12
13
    protected $voice_duration;
14
15
    /**
16
     * @return mixed
17
     */
18
    public function getVoiceUrl()
19
    {
20
        return $this->voice_url;
21
    }
22
23
    /**
24
     * @param mixed $voice_url
25
     *
26
     * @return $this
27
     */
28
    public function setVoiceUrl($voice_url)
29
    {
30
        $this->voice_url = $voice_url;
31
32
        return $this;
33
    }
34
35
    /**
36
     * @return mixed
37
     */
38
    public function getVoiceDuration()
39
    {
40
        return $this->voice_duration;
41
    }
42
43
    /**
44
     * @param mixed $voice_duration
45
     *
46
     * @return $this
47
     */
48
    public function setVoiceDuration($voice_duration)
49
    {
50
        $this->voice_duration = $voice_duration;
51
52
        return $this;
53
    }
54
}
55