Passed
Push — master ( 85d52f...78024d )
by Armando
01:42
created

PollAnswer   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 3
c 1
b 0
f 0
dl 0
loc 9
ccs 0
cts 4
cp 0
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A subEntities() 0 4 1
1
<?php
2
3
/**
4
 * This file is part of the TelegramBot package.
5
 *
6
 * (c) Avtandil Kikabidze aka LONGMAN <[email protected]>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace Longman\TelegramBot\Entities;
13
14
/**
15
 * Class PollAnswer
16
 *
17
 * This entity represents an answer of a user in a non-anonymous poll.
18
 *
19
 * @link https://core.telegram.org/bots/api#pollanswer
20
 *
21
 * @method string getPollId()    Unique poll identifier
22
 * @method User   getUser()      The user, who changed the answer to the poll
23
 * @method array  getOptionIds() 0-based identifiers of answer options, chosen by the user. May be empty if the user retracted their vote.
24
 */
25
class PollAnswer extends Entity
26
{
27
    /**
28
     * {@inheritdoc}
29
     */
30
    protected function subEntities()
31
    {
32
        return [
33
            'user' => User::class,
34
        ];
35
    }
36
}
37