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

FacebookServiceAdapterFactory::__invoke()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 0
cts 4
cp 0
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 3
crap 2
1
<?php
2
/**
3
 * Created by PhpStorm.
4
 * User: Ricardo Fiorani
5
 * Date: 02/09/2015
6
 * Time: 22:41.
7
 */
8
namespace RicardoFiorani\Adapter\Facebook\Factory;
9
10
use RicardoFiorani\Adapter\Facebook\FacebookServiceAdapter;
11
use RicardoFiorani\Adapter\CallableServiceAdapterFactoryInterface;
12
use RicardoFiorani\Adapter\VideoAdapterInterface;
13
use RicardoFiorani\Renderer\EmbedRendererInterface;
14
15
class FacebookServiceAdapterFactory implements CallableServiceAdapterFactoryInterface
16
{
17
    /**
18
     * @param string                 $url
19
     * @param string                 $pattern
20
     * @param EmbedRendererInterface $renderer
21
     *
22
     * @return VideoAdapterInterface
23
     */
24
    public function __invoke($url, $pattern, EmbedRendererInterface $renderer)
25
    {
26
        return new FacebookServiceAdapter($url, $pattern, $renderer);
27
    }
28
}
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...
29