Completed
Push — master ( 415647...d02380 )
by Ricardo
02:50
created

VimeoServiceAdapterFactory::__invoke()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 6
ccs 0
cts 5
cp 0
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 3
nc 1
nop 3
crap 2
1
<?php
2
/**
3
 * Created by PhpStorm.
4
 * User: Ricardo Fiorani
5
 * Date: 29/08/2015
6
 * Time: 14:56.
7
 */
8
namespace RicardoFiorani\Adapter\Vimeo\Factory;
9
10
use RicardoFiorani\Adapter\CallableServiceAdapterFactoryInterface;
11
use RicardoFiorani\Adapter\Vimeo\VimeoServiceAdapter;
12
use RicardoFiorani\Renderer\EmbedRendererInterface;
13
14
class VimeoServiceAdapterFactory implements CallableServiceAdapterFactoryInterface
15
{
16
    /**
17
     * @param string                 $url
18
     * @param string                 $pattern
19
     * @param EmbedRendererInterface $renderer
20
     *
21
     * @return VimeoServiceAdapter
22
     *
23
     * @internal param EmbedRendererInterface $rendererInterface
24
     */
25
    public function __invoke($url, $pattern, EmbedRendererInterface $renderer)
26
    {
27
        $adapter = new VimeoServiceAdapter($url, $pattern, $renderer);
28
29
        return $adapter;
30
    }
31
}
0 ignored issues
show
Coding Style introduced by
As per coding style, files should not end with a newline character.

This check marks files that end in a newline character, i.e. an empy line.

Loading history...
32