Completed
Push — master ( 65974f...854b36 )
by Vasily
08:49 queued 04:15
created

EventLoopContainer::setEventLoop()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
dl 0
loc 4
rs 10
c 1
b 0
f 0
eloc 3
nc 1
nop 1
1
<?php
2
/**
3
 * Created by PhpStorm.
4
 * User: vasilyzorin
5
 * Date: 25/05/16
6
 * Time: 01:47
7
 */
8
9
namespace PHPDaemon\Traits;
10
11
12
use PHPDaemon\Core\EventLoop;
13
14
trait EventLoopContainer
15
{
16
    public $eventLoop;
17
    public function setEventLoop(EventLoop $eventLoop) {
18
        $this->eventLoop = $eventLoop;
19
        return $this;
20
    }
21
}