Completed
Push — master ( 97e05d...b9b816 )
by Jean-Christophe
03:07
created

HtmlImage::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 4
rs 10
cc 1
eloc 3
nc 1
nop 3
1
<?php
2
3
namespace Ajax\semantic\html\elements;
4
5
use Ajax\common\html\html5\HtmlImg;
6
7
class HtmlImage extends HtmlImg {
8
9
	public function __construct($identifier, $src="", $alt="") {
10
		parent::__construct($identifier, $src, $alt);
11
		$this->setClass("ui image");
12
	}
13
14
	public function setCircular(){
15
		return $this->addToProperty("class", "circular");
16
	}
17
}