Passed
Push — master ( a13bb5...cada17 )
by Ryan
32:56 queued 18:49
created

RootTrait::getRoot()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
<?php
2
/**
3
 * Copyright (c) 2017–2018 Ryan Parman <http://ryanparman.com>.
4
 * Copyright (c) 2017–2018 Contributors.
5
 *
6
 * http://opensource.org/licenses/Apache2.0
7
 */
8
9
declare(strict_types=1);
10
11
namespace SimplePie\Mixin;
12
13
/**
14
 * Shared code for working with elements which manage the tree root.
15
 */
16
trait RootTrait
17
{
18
    /**
19
     * The root-most node in the feed.
20
     *
21
     * @var stdClass
0 ignored issues
show
Bug introduced by
The type SimplePie\Mixin\stdClass was not found. Did you mean stdClass? If so, make sure to prefix the type with \.
Loading history...
22
     */
23
    protected $root;
24
25
    /**
26
     * Retrieve the root-most node in the feed.
27
     *
28
     * @return stdClass
29
     */
30
    public function getRoot(): object
31
    {
32
        return $this->root;
33
    }
34
}
35