RawDocumentTrait   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 3
c 1
b 0
f 0
dl 0
loc 15
ccs 2
cts 2
cp 1
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A getRawDocument() 0 3 1
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