Completed
Push — EventLoopContainer ( c9a84d )
by Vasily
04:35
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
trait EventLoopContainer
13
{
14
    public $eventLoop;
15
    public function setEventLoop(EventLoop $eventLoop) {
16
        $this->eventLoop = $eventLoop;
17
        return $this;
18
    }
19
}