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

Attachment::setUrl()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 0
cts 3
cp 0
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 1
crap 2
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