Passed
Branch master (4d781a)
by jelmer
02:23
created

UrlIcon::setIcon()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 14
Code Lines 7

Duplication

Lines 14
Ratio 100 %

Code Coverage

Tests 7
CRAP Score 2
Metric Value
dl 14
loc 14
ccs 7
cts 7
cp 1
rs 9.4285
cc 2
eloc 7
nc 2
nop 1
crap 2
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