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

RootTrait   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
dl 0
loc 17
rs 10
c 0
b 0
f 0
wmc 1

1 Method

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