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

item   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 3
dl 0
loc 22
rs 10
c 0
b 0
f 0
wmc 3

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __isset() 0 3 2
A __get() 0 3 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
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