AbstractThumbnail::__construct()   A
last analyzed

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
c 0
b 0
f 0
nc 1
nop 1
dl 0
loc 3
rs 10
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