AbstractThumbnail   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
1
<?php
2
3
/**
4
 * Base class for thumbnails
5
 *
6
 * @author Sam Stenvall <[email protected]>
7
 * @copyright Copyright &copy; Sam Stenvall 2015-
8
 * @license https://www.gnu.org/licenses/gpl.html The GNU General Public License v3.0
9
 */
10
abstract class AbstractThumbnail
11
{
12
13
	/**
14
	 * @var string the thumbnail path
15
	 */
16
	protected $_path;
17
18
	/**
19
	 * @return string the URL to the thumbnail
20
	 */
21
	abstract public function getUrl();
22
23
	/**
24
	 * Class constructor
25
	 * @param string $path
26
	 */
27
	public function __construct($path)
28
	{
29
		$this->_path = $path;
30
	}
31
32
}
33