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

feed::__get()   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 1
dl 0
loc 3
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\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