Completed
Pull Request — develop (#291)
by Armando
03:51
created

Audio::__construct()   B

Complexity

Conditions 10
Paths 70

Size

Total Lines 18
Code Lines 11

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 110

Importance

Changes 2
Bugs 1 Features 0
Metric Value
dl 0
loc 18
rs 7.2765
c 2
b 1
f 0
ccs 0
cts 15
cp 0
cc 10
eloc 11
nc 70
nop 1
crap 110

How to fix   Complexity   

Long Method

Small methods make your code easier to understand, in particular if combined with a good name. Besides, if your method is small, finding a good name is usually much easier.

For example, if you find yourself adding comments to a method's body, this is usually a good sign to extract the commented part to a new method, and use the comment as a starting point when coming up with a good name for this new method.

Commonly applied refactorings include:

1
<?php
2
/**
3
 * This file is part of the TelegramBot package.
4
 *
5
 * (c) Avtandil Kikabidze aka LONGMAN <[email protected]>
6
 *
7
 * For the full copyright and license information, please view the LICENSE
8
 * file that was distributed with this source code.
9
 */
10
11
namespace Longman\TelegramBot\Entities;
12
13
/**
14
 * Class Audio
15
 *
16
 * @link https://core.telegram.org/bots/api#audio
17
 *
18
 * @method string getFileId()    Unique identifier for this file
19
 * @method int    getDuration()  Duration of the audio in seconds as defined by sender
20
 * @method string getPerformer() Optional. Performer of the audio as defined by sender or by audio tags
21
 * @method string getTitle()     Optional. Title of the audio as defined by sender or by audio tags
22
 * @method string getMimeType()  Optional. MIME type of the file as defined by sender
23
 * @method int    getFileSize()  Optional. File size
24
 */
25
class Audio extends Entity
26
{
27
28
}
29