Completed
Push — master ( 010ee5...249aeb )
by Jean-Christophe
03:12
created

HtmlImg::addContent()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 1
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 1 Features 0
Metric Value
dl 0
loc 1
rs 10
c 1
b 1
f 0
cc 1
eloc 1
nc 1
nop 2
1
<?php
2
3
namespace Ajax\semantic\html\elements\html5;
4
5
use Ajax\semantic\html\base\traits\BaseTrait;
6
7
class HtmlImg extends \Ajax\common\html\html5\HtmlImg {
8
	use BaseTrait;
9
10
	public function __construct($identifier, $src="", $alt="") {
11
		parent::__construct($identifier, $src, $alt);
12
		$this->_baseClass="ui image";
13
		$this->setClass($this->_baseClass);
14
	}
15
16
	public function asAvatar($caption=NULL) {
17
		if (isset($caption))
18
			$this->wrap("", $caption);
19
			return $this->addToProperty("class", "avatar");
20
	}
21
22
	/**
23
	 * {@inheritDoc}
24
	 * @see \Ajax\semantic\html\base\traits\BaseTrait::addContent()
25
	 */
26
	public function addContent($content, $before=false) {}
1 ignored issue
show
Unused Code introduced by
The parameter $content is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $before is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
27
}