GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Completed
Push — thruway-0.4 ( baa652...f57a73 )
by Cees-Jan
08:46
created

ConstructEvent   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 32
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 32
rs 10
wmc 3
lcom 0
cbo 1

3 Methods

Rating   Name   Duplication   Size   Complexity  
A create() 0 7 1
A getLoop() 0 4 1
A getEventManager() 0 4 1
1
<?php
2
3
/**
4
 * This file is part of Ratchet.
5
 *
6
 ** (c) 2016 Cees-Jan Kiewiet
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
namespace WyriHaximus\Ratchet\Event;
12
13
use Cake\Event\Event;
14
use Cake\Event\EventManager;
15
use React\EventLoop\LoopInterface;
16
17
class ConstructEvent extends Event
18
{
19
    const EVENT = 'WyriHaximus.Ratchet.construct';
20
21
    /**
22
     * @param LoopInterface $loop
23
     * @return static
24
     */
25
    public static function create(LoopInterface $loop, EventManager $eventManager)
26
    {
27
        return new static(static::EVENT, $loop, [
28
            'loop' => $loop,
29
            'eventManager' => $eventManager,
30
        ]);
31
    }
32
33
    /**
34
     * @return LoopInterface
35
     */
36
    public function getLoop()
37
    {
38
        return $this->data()['loop'];
39
    }
40
41
    /**
42
     * @return EventManager
43
     */
44
    public function getEventManager()
45
    {
46
        return $this->data()['eventManager'];
47
    }
48
}