Get::prepare()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 4
CRAP Score 1

Importance

Changes 2
Bugs 1 Features 0
Metric Value
c 2
b 1
f 0
dl 0
loc 5
ccs 4
cts 4
cp 1
rs 9.4286
cc 1
eloc 3
nc 1
nop 0
crap 1
1
<?php
2
/**
3
 * This file is part of the bee4/transport package.
4
 * For the full copyright and license information, please view the LICENSE
5
 * file that was distributed with this source code.
6
 *
7
 * @copyright Bee4 2015
8
 * @author  Stephane HULARD <[email protected]>
9
 * @package Bee4\Transport\Message\Request\Ftp
10
 */
11
12
namespace Bee4\Transport\Message\Request\Ftp;
13
14
/**
15
 * FTP GET Request object => Retrieve the file
16
 * @package Bee4\Transport\Message\Request\Ftp
17
 */
18
class Get extends FtpRequest
19
{
20 1
    protected function prepare()
21
    {
22 1
        parent::prepare();
23 1
        $this->addOption(CURLOPT_URL, $this->getUrl());
24 1
    }
25
}
26