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

HtmlImage   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 2
c 1
b 0
f 0
lcom 0
cbo 1
dl 0
loc 11
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A setCircular() 0 3 1
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
}