Completed
Push — master ( f56a64...b6e499 )
by Théo
04:01 queued 01:18
created

Scoper::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 1
dl 0
loc 4
ccs 3
cts 3
cp 1
crap 1
rs 10
c 0
b 0
f 0
1
<?php
2
3
declare(strict_types=1);
4
5
/*
6
 * This file is part of the humbug/php-scoper package.
7
 *
8
 * Copyright (c) 2017 Théo FIDRY <[email protected]>,
9
 *                    Pádraic Brady <[email protected]>
10
 *
11
 * For the full copyright and license information, please view the LICENSE
12
 * file that was distributed with this source code.
13
 */
14
15
namespace Humbug\PhpScoper;
16
17
use Humbug\PhpScoper\Throwable\Exception\ParsingException;
18
19
interface Scoper
20
{
21
    /**
22
     * Scope AKA. apply the given prefix to the file in the appropriate way.
23
     *
24
     * @param string $filePath File to scope
25
     * @param string $prefix   Prefix to apply to the file
26
     *
27
     * @throws ParsingException
28
     *
29
     * @return string Content of the file with the prefix applied
30
     */
31
    public function scope(string $filePath, string $prefix): string;
32
}
33