Passed
Push — develop ( 4e64c5...c1d6c4 )
by Daniel
09:01
created

Feed::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 0
dl 0
loc 5
rs 10
c 0
b 0
f 0
1
<?php
2
/**
3
 *
4
 * @package sitemaker
5
 * @copyright (c) 2019 Daniel A. (blitze)
6
 * @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License v2
7
 *
8
 */
9
10
namespace blitze\sitemaker\services\feeds;
11
12
use SimplePie;
13
14
class Feed extends SimplePie
15
{
16
    public function __construct()
17
    {
18
        parent::__construct();
19
20
		$this->set_item_class('blitze\sitemaker\services\feeds\Item');
21
    }
22
23
	/**
24
	 * Magic method handler
25
	 *
26
	 * @param string $name Property name
27
	 * @return mixed
28
	 */
29
	public function __get($name)
30
	{
31
		return $this->{'get_' . $name}();
32
	}
33
34
	/**
35
	 * Magic method handler
36
	 *
37
	 * @param string $name Property name
38
	 * @return bool
39
	 */
40
	public function __isset($name)
41
	{
42
		 return method_exists($this, 'get_' . $name) ? true : false;
43
	}
44
}
45