Completed
Push — master ( 1c26be...19bb2d )
by Basil
05:42
created

ImageObjectTrait   A

Complexity

Total Complexity 8

Size/Duplication

Total Lines 59
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 8
lcom 0
cbo 1
dl 0
loc 59
rs 10
c 0
b 0
f 0

8 Methods

Rating   Name   Duplication   Size   Complexity  
A setCaption() 0 5 1
A getCaption() 0 4 1
A setExifData() 0 6 1
A getExifData() 0 4 1
A setRepresentativeOfPage() 0 6 1
A getRepresentativeOfPage() 0 4 1
A setThumbnail() 0 6 1
A getThumbnail() 0 4 1
1
<?php
2
3
namespace luya\web\jsonld;
4
5
/**
6
 * http://schema.org/ImageObject
7
 * 
8
 * @author Basil Suter <[email protected]>
9
 * @since 1.0.3
10
 */
11
trait ImageObjectTrait
12
{
13
    use MediaObjectTrait;
14
	
15
	private $_caption;
16
	
17
	public function setCaption($caption)
18
	{
19
	    $this->_caption = $caption;
20
	    return $this;
21
	}
22
	
23
	public function getCaption()
24
	{
25
	    return $this->_caption;
26
	}
27
	
28
	private $_exifData;
29
	
30
	public function setExifData(PropertyValue $propertyValue)
31
	{
32
	   $this->_exifData = $propertyValue;
33
	   
34
	   return $this;
35
	}
36
	
37
	public function getExifData()
38
	{
39
	    return $this->_exifData;
40
	}
41
	
42
	private $_representativeOfPage;
43
	
44
	public function setRepresentativeOfPage($representativeOfPage)
45
	{
46
	   $this->_representativeOfPage = $representativeOfPage;
47
	   
48
	   return $this;
49
	}
50
	
51
	public function getRepresentativeOfPage()
52
	{
53
	    return $this->_representativeOfPage;
54
	}
55
	
56
	private $_thumbnail;
57
	
58
	public function setThumbnail(ImageObject $imageObject)
59
	{
60
	    $this->_thumbnail = $imageObject;
61
	    
62
	    return $this;
63
	}
64
	
65
	public function getThumbnail()
66
	{
67
	    return $this->_thumbnail;
68
	}
69
}