Completed
Push — master ( b0c767...5b41ae )
by Markus
01:56
created

Attachment   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 1
dl 0
loc 21
ccs 0
cts 6
cp 0
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A setUrl() 0 4 1
A __construct() 0 4 1
1
<?php
2
3
/*
4
 * This file is part of the eluceo/iCal package.
5
 *
6
 * (c) Markus Poerschke <[email protected]>
7
 *
8
 * This source file is subject to the MIT license that is bundled
9
 * with this source code in the file LICENSE.
10
 */
11
12
namespace Eluceo\iCal\Property\Event;
13
14
use Eluceo\iCal\Property;
15
16
/**
17
 * Class Attachment.
18
 */
19
class Attachment extends Property
20
{
21
    /**
22
     * @param string $value
23
     * @param array  $params
24
     */
25
    public function __construct($value, $params = [])
26
    {
27
        parent::__construct('ATTACH', $value, $params);
28
    }
29
30
    /**
31
     * @param $url
32
     *
33
     * @throws \Exception
34
     */
35
    public function setUrl($url)
36
    {
37
        $this->setValue($url);
38
    }
39
}
40