Completed
Push — master ( 21e214...2bd91c )
by Irfaq
02:34
created

UpdateWasReceived::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 4
ccs 3
cts 3
cp 1
rs 10
cc 1
eloc 2
nc 1
nop 1
crap 1
1
<?php
2
3
namespace Telegram\Bot\Events;
4
5
use League\Event\AbstractEvent;
6
use Telegram\Bot\Objects\Update;
7
8
class UpdateWasReceived extends AbstractEvent
9
{
10
    /**
11
     * @var Update
12
     */
13
    private $update;
14
15
    /**
16
     * UpdateWasReceived constructor.
17
     * @param Update $update
18
     */
19 6
    public function __construct(Update $update)
20
    {
21 6
        $this->update = $update;
22 6
    }
23
24
    /**
25
     * @return Update
26
     */
27
    public function getUpdate()
28
    {
29
        return $this->update;
30
    }
31
}
32