RawDocumentTrait::getRawDocument()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 3
ccs 2
cts 2
cp 1
crap 1
rs 10
1
<?php
2
/**
3
 * Copyright (c) 2010–2019 Ryan Parman <http://ryanparman.com>.
4
 * Copyright (c) 2016–2019 Contributors.
5
 *
6
 * http://opensource.org/licenses/Apache2.0
7
 */
8
9
declare(strict_types=1);
10
11
namespace SimplePie\UtilityPack\Mixin;
12
13
/**
14
 * Shared code for working with raw feed content.
15
 */
16
trait RawDocumentTrait
17
{
18
    /**
19
     * The raw, unparsed contents of the feed's stream.
20
     *
21
     * @var string
22
     */
23
    protected $rawDocument;
0 ignored issues
show
Coding Style introduced by
Protected member variable "rawDocument" must contain a leading underscore
Loading history...
24
25
    /**
26
     * Retrieves the raw, unparsed contents of the feed's stream.
27
     */
28 1
    public function getRawDocument(): string
29
    {
30 1
        return $this->rawDocument;
31
    }
32
}
33