Passed
Pull Request — develop (#1493)
by Rabie
06:35
created

BackgroundFill   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 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\Background;
13
14
/**
15
 * Class BackgroundFill
16
 *
17
 * The background is automatically filled based on the selected colors.
18
 *
19
 * @link https://core.telegram.org/bots/api#backgroundfill
20
 *
21
 * @method string getType()          Type of the fill, always “fill”
22
 * @method int    getTopColor()      The color of the top gradient fill as a RGB24 value
23
 * @method int    getBottomColor()   The color of the bottom gradient fill as a RGB24 value
24
 * @method int    getRotationAngle() Clockwise rotation angle of the background fill in degrees; 0-359
25
 */
26
class BackgroundFill extends BackgroundType
27
{
28
    /**
29
     * {@inheritdoc}
30
     */
31
    public function __construct(array $data = [])
32
    {
33
        $data['type'] = 'fill';
34
        parent::__construct($data);
35
    }
36
}
37