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

Item::__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\feeds;
11
12
use SimplePie_Item;
13
14
class Item extends SimplePie_Item
15
{
16
	/**
17
	 * Magic method handler
18
	 *
19
	 * @param string $name Property name
20
	 * @return mixed
21
	 */
22
	public function __get($name)
23
	{
24
		return $this->{'get_' . $name}();
25
	}
26
27
	/**
28
	 * Magic method handler
29
	 *
30
	 * @param string $name Property name
31
	 * @return bool
32
	 */
33
	public function __isset($name)
34
	{
35
		return method_exists($this, 'get_' . $name) ? true : false;
36
	}
37
}
38