Passed
Push — master ( c8e4bc...17399e )
by Jacobo
04:15
created

SubscriberBuilder::build()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 3
c 1
b 0
f 0
nc 1
nop 1
dl 0
loc 5
rs 10
1
<?php
2
3
namespace SquareetLabs\LaravelOpenVidu\Builders;
4
5
use SquareetLabs\LaravelOpenVidu\Subscriber;
6
7
/**
8
 * Class SubscriberBuilder
9
 * @package SquareetLabs\LaravelOpenVidu\Builders
10
 */
11
class SubscriberBuilder implements BuilderInterface
12
{
13
    /**
14
     * @param  array  $properties
15
     * @return Subscriber
16
     */
17
    public static function build(array $properties)
18
    {
19
        return new Subscriber($properties['streamId'],
20
            $properties['publisherStreamId'],
21
            $properties['createdAt']);
22
    }
23
}