UrlIcon   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 2
Bugs 0 Features 1
Metric Value
wmc 2
c 2
b 0
f 1
lcom 0
cbo 1
dl 0
loc 18
ccs 4
cts 4
cp 1
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getIcon() 0 4 1
A getType() 0 4 1
1
<?php
2
3
namespace Pageon\SlackWebhookMonolog\Slack;
4
5
use Pageon\SlackWebhookMonolog\General\Url;
6
use Pageon\SlackWebhookMonolog\Slack\Interfaces\IconInterface;
7
8
/**
9
 * @author Jelmer Prins <[email protected]>
10
 *
11
 * @since 0.1.0
12
 */
13
class UrlIcon extends Url implements IconInterface
14
{
15
    /**
16
     * {@inheritdoc}
17
     */
18 1
    public function getIcon()
19
    {
20 1
        return $this->getUrl();
21
    }
22
23
    /**
24
     * {@inheritdoc}
25
     */
26 1
    public function getType()
27
    {
28 1
        return 'url';
29
    }
30
}
31