Passed
Push — develop ( 758526...bc2ac2 )
by Daniel
04:17
created

feed   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 29
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 5
dl 0
loc 29
rs 10
c 0
b 0
f 0
wmc 4

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __isset() 0 3 2
A __get() 0 3 1
A __construct() 0 5 1
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\simplepie;
11
12
class feed extends \SimplePie
13
{
14
	public function __construct()
15
	{
16
		parent::__construct();
17
18
		$this->set_item_class('blitze\sitemaker\services\simplepie\item');
19
	}
20
21
	/**
22
	 * Magic method handler
23
	 *
24
	 * @param string $name Property name
25
	 * @return mixed
26
	 */
27
	public function __get($name)
28
	{
29
		return $this->{'get_' . $name}();
30
	}
31
32
	/**
33
	 * Magic method handler
34
	 *
35
	 * @param string $name Property name
36
	 * @return bool
37
	 */
38
	public function __isset($name)
39
	{
40
		return method_exists($this, 'get_' . $name) ? true : false;
41
	}
42
}
43