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.

WebsocketStartEvent   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
dl 0
loc 23
ccs 6
cts 6
cp 1
rs 10
c 0
b 0
f 0
wmc 2
lcom 0
cbo 1

2 Methods

Rating   Name   Duplication   Size   Complexity  
A create() 0 6 1
A getLoop() 0 4 1
1
<?php
2
3
/**
4
 * This file is part of Ratchet for CakePHP.
5
 *
6
 ** (c) 2012 - 2015 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
12
namespace WyriHaximus\Ratchet\Event;
13
14
use Cake\Event\Event;
15
use React\EventLoop\LoopInterface;
16
17
class WebsocketStartEvent extends Event
18
{
19
    const EVENT = 'WyriHaximus.Ratchet.WebsocketStart';
20
21
    /**
22
     * @param LoopInterface $loop
23
     * @return static
24
     */
25 1
    public static function create(LoopInterface $loop)
26
    {
27 1
        return new static(static::EVENT, $loop, [
28 1
            'loop' => $loop,
29 1
        ]);
30
    }
31
32
    /**
33
     * @return LoopInterface
34
     */
35 1
    public function getLoop()
36
    {
37 1
        return $this->getSubject();
38
    }
39
}
40