DailymotionConfiguration   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 2
Bugs 0 Features 1
Metric Value
wmc 2
c 2
b 0
f 1
lcom 0
cbo 1
dl 0
loc 22
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 8 1
A getCategoryMap() 0 4 1
1
<?php
2
3
namespace Libcast\AssetDistributor\Dailymotion;
4
5
use Libcast\AssetDistributor\Configuration\AbstractConfiguration;
6
use Libcast\AssetDistributor\Configuration\Configuration;
7
use Psr\Log\LoggerInterface;
8
9
class DailymotionConfiguration extends AbstractConfiguration implements Configuration
10
{
11
    /**
12
     * {@inheritdoc}
13
     */
14
    public function __construct(array $configuration, LoggerInterface $logger = null)
15
    {
16
        $configuration = array_merge($configuration, [
17
            'scopes' => ['manage_videos'],
18
        ]);
19
20
        parent::__construct($configuration, $logger);
21
    }
22
23
    /**
24
     * {@inheritdoc}
25
     */
26
    public function getCategoryMap()
27
    {
28
        return [];
29
    }
30
}
31