Passed
Push — master ( 7f7158...8d1ed5 )
by Armando
02:55
created

Poll::getOptions()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 6

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 6

Importance

Changes 0
Metric Value
dl 0
loc 6
ccs 0
cts 5
cp 0
rs 10
c 0
b 0
f 0
cc 2
nc 2
nop 0
crap 6
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 Poll
15
 *
16
 * This entity contains information about a poll.
17
 *
18
 * @link https://core.telegram.org/bots/api#poll
19
 *
20
 * @method string       getId()       Unique poll identifier
21
 * @method string       getQuestion() Poll question, 1-255 characters
22
 * @method PollOption[] getOptions()  List of poll options
23
 * @method bool         getIsClosed() True, if the poll is closed
24
 */
25
class Poll extends Entity
26
{
27
    /**
28
     * {@inheritdoc}
29
     */
30
    protected function subEntities()
31
    {
32
        return [
33
            'options' => [PollOption::class],
34
        ];
35
    }
36
}
37