GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.

Passphrase::__construct()   A
last analyzed

Complexity

Conditions 2
Paths 2

Size

Total Lines 7

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 6

Importance

Changes 0
Metric Value
dl 0
loc 7
ccs 0
cts 0
cp 0
rs 10
c 0
b 0
f 0
cc 2
nc 2
nop 1
crap 6
1
<?php
2
3
/*
4
 * This file is part of the Marlon Ogone package.
5
 *
6
 * (c) Marlon BVBA <[email protected]>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace Ogone;
13
14
/**
15
 * Ogone Passphrase Value Object
16
 */
17
final class Passphrase
18
{
19
    /**
20
     * @var string
21
     */
22
    private $passphrase;
23
24
    /** @@codeCoverageIgnore */
25
    public function __construct($passphrase)
26
    {
27
        if (!is_string($passphrase)) {
28
            throw new \InvalidArgumentException("String expected");
29
        }
30
        $this->passphrase = $passphrase;
31
    }
32
33
    /**
34
     * String representation
35
     */
36 10
    public function __toString()
37
    {
38 10
        return (string) $this->passphrase;
39
    }
40
}
41