Completed
Push — master ( b9a8b8...3e8704 )
by Jean-Christophe
03:43
created

HtmlImg::getAlt()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 3
rs 10
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
3
namespace Ajax\common\html\html5;
4
5
6
use Ajax\common\html\HtmlSingleElement;
7
8
class HtmlImg extends HtmlSingleElement {
9
10
	public function __construct($identifier) {
11
		parent::__construct($identifier, "img");
12
	}
13
14
	public function getSrc() {
15
		return $this->getProperty("src");
16
	}
17
18
	public function setSrc($src) {
19
		$this->setProperty("src", $src);
20
		return $this;
21
	}
22
23
	public function getAlt() {
24
		return $this->getProperty("alt");
25
	}
26
27
	public function setAlt($alt) {
28
		$this->setProperty("alt", $alt);
29
		return $this;
30
	}
31
32
	public function getTitle() {
33
		return $this->getProperty("title");
34
	}
35
36
	public function setTitle($title) {
37
		$this->setProperty("title", $title);
38
		return $this;
39
	}
40
}