@@ -51,7 +51,7 @@ |
||
51 | 51 | /** |
52 | 52 | * Physical address of the item. |
53 | 53 | * |
54 | - * @param PostalAddress|string $address |
|
54 | + * @param PostalAddress $address |
|
55 | 55 | * @return PlaceTrait |
56 | 56 | */ |
57 | 57 | public function setAddress(PostalAddress $address) |
@@ -12,11 +12,11 @@ |
||
12 | 12 | { |
13 | 13 | use ImageObjectTrait; |
14 | 14 | |
15 | - /** |
|
16 | - * @inheritdoc |
|
17 | - */ |
|
18 | - public function typeDefintion() |
|
19 | - { |
|
20 | - return 'ImageObject'; |
|
21 | - } |
|
15 | + /** |
|
16 | + * @inheritdoc |
|
17 | + */ |
|
18 | + public function typeDefintion() |
|
19 | + { |
|
20 | + return 'ImageObject'; |
|
21 | + } |
|
22 | 22 | } |
23 | 23 | \ No newline at end of file |
@@ -10,31 +10,31 @@ |
||
10 | 10 | */ |
11 | 11 | interface PropertyValueInterface extends ThingInterface |
12 | 12 | { |
13 | - public function setMaxValue($maxValue); |
|
13 | + public function setMaxValue($maxValue); |
|
14 | 14 | |
15 | - public function getMaxValue(); |
|
15 | + public function getMaxValue(); |
|
16 | 16 | |
17 | - public function setMeasurementTechnique($measurementTechnique); |
|
17 | + public function setMeasurementTechnique($measurementTechnique); |
|
18 | 18 | |
19 | - public function getMeasurementTechnique(); |
|
19 | + public function getMeasurementTechnique(); |
|
20 | 20 | |
21 | - public function setMinValue($minValue); |
|
21 | + public function setMinValue($minValue); |
|
22 | 22 | |
23 | - public function getMinValue(); |
|
23 | + public function getMinValue(); |
|
24 | 24 | |
25 | - public function setPropertyID($propertyID); |
|
25 | + public function setPropertyID($propertyID); |
|
26 | 26 | |
27 | - public function getPropertyID(); |
|
27 | + public function getPropertyID(); |
|
28 | 28 | |
29 | - public function setUnitCode($unitCode); |
|
29 | + public function setUnitCode($unitCode); |
|
30 | 30 | |
31 | - public function getUnitCode(); |
|
31 | + public function getUnitCode(); |
|
32 | 32 | |
33 | - public function setUnitText($uniText); |
|
33 | + public function setUnitText($uniText); |
|
34 | 34 | |
35 | - public function getUnitText(); |
|
35 | + public function getUnitText(); |
|
36 | 36 | |
37 | - public function setValue($value); |
|
37 | + public function setValue($value); |
|
38 | 38 | |
39 | - public function getValue(); |
|
39 | + public function getValue(); |
|
40 | 40 | } |
41 | 41 | \ No newline at end of file |
@@ -10,103 +10,103 @@ |
||
10 | 10 | */ |
11 | 11 | trait PropertyValueTrait |
12 | 12 | { |
13 | - use ThingTrait; |
|
13 | + use ThingTrait; |
|
14 | 14 | |
15 | - private $_maxValue; |
|
15 | + private $_maxValue; |
|
16 | 16 | |
17 | - public function setMaxValue($maxValue) |
|
18 | - { |
|
19 | - $this->_maxValue = $maxValue; |
|
17 | + public function setMaxValue($maxValue) |
|
18 | + { |
|
19 | + $this->_maxValue = $maxValue; |
|
20 | 20 | |
21 | - return $this; |
|
22 | - } |
|
21 | + return $this; |
|
22 | + } |
|
23 | 23 | |
24 | - public function getMaxValue() |
|
25 | - { |
|
26 | - return $this->_maxValue; |
|
27 | - } |
|
24 | + public function getMaxValue() |
|
25 | + { |
|
26 | + return $this->_maxValue; |
|
27 | + } |
|
28 | 28 | |
29 | - private $_minValue; |
|
29 | + private $_minValue; |
|
30 | 30 | |
31 | - public function setMinValue($minValue) |
|
32 | - { |
|
33 | - $this->_minValue = $minValue; |
|
31 | + public function setMinValue($minValue) |
|
32 | + { |
|
33 | + $this->_minValue = $minValue; |
|
34 | 34 | |
35 | - return $this; |
|
36 | - } |
|
35 | + return $this; |
|
36 | + } |
|
37 | 37 | |
38 | - public function getMinValue() |
|
39 | - { |
|
40 | - return $this->_minValue; |
|
41 | - } |
|
38 | + public function getMinValue() |
|
39 | + { |
|
40 | + return $this->_minValue; |
|
41 | + } |
|
42 | 42 | |
43 | - private $_measurementTechnique; |
|
43 | + private $_measurementTechnique; |
|
44 | 44 | |
45 | - public function setMeasurementTechnique($measurementTechnique) |
|
46 | - { |
|
47 | - $this->_measurementTechnique = $measurementTechnique; |
|
45 | + public function setMeasurementTechnique($measurementTechnique) |
|
46 | + { |
|
47 | + $this->_measurementTechnique = $measurementTechnique; |
|
48 | 48 | |
49 | - return $this; |
|
50 | - } |
|
49 | + return $this; |
|
50 | + } |
|
51 | 51 | |
52 | - public function getMeasurementTechnique() |
|
53 | - { |
|
54 | - return $this->_measurementTechnique; |
|
55 | - } |
|
52 | + public function getMeasurementTechnique() |
|
53 | + { |
|
54 | + return $this->_measurementTechnique; |
|
55 | + } |
|
56 | 56 | |
57 | - private $_propertyId; |
|
57 | + private $_propertyId; |
|
58 | 58 | |
59 | - public function setPropertyID($propertyID) |
|
60 | - { |
|
61 | - $this->_propertyId = $propertyID; |
|
59 | + public function setPropertyID($propertyID) |
|
60 | + { |
|
61 | + $this->_propertyId = $propertyID; |
|
62 | 62 | |
63 | - return $this; |
|
64 | - } |
|
63 | + return $this; |
|
64 | + } |
|
65 | 65 | |
66 | - public function getPropertyID() |
|
67 | - { |
|
68 | - return $this->_propertyId; |
|
69 | - } |
|
66 | + public function getPropertyID() |
|
67 | + { |
|
68 | + return $this->_propertyId; |
|
69 | + } |
|
70 | 70 | |
71 | - private $_unitCode; |
|
71 | + private $_unitCode; |
|
72 | 72 | |
73 | - public function setUnitCode($unitCode) |
|
74 | - { |
|
75 | - $this->_unitCode = $unitCode; |
|
73 | + public function setUnitCode($unitCode) |
|
74 | + { |
|
75 | + $this->_unitCode = $unitCode; |
|
76 | 76 | |
77 | - return $this; |
|
78 | - } |
|
77 | + return $this; |
|
78 | + } |
|
79 | 79 | |
80 | - public function getUnitCode() |
|
81 | - { |
|
82 | - return $this->_unitCode; |
|
83 | - } |
|
80 | + public function getUnitCode() |
|
81 | + { |
|
82 | + return $this->_unitCode; |
|
83 | + } |
|
84 | 84 | |
85 | - private $_unitText; |
|
85 | + private $_unitText; |
|
86 | 86 | |
87 | - public function setUnitText($uniText) |
|
88 | - { |
|
89 | - $this->_unitText = $uniText; |
|
87 | + public function setUnitText($uniText) |
|
88 | + { |
|
89 | + $this->_unitText = $uniText; |
|
90 | 90 | |
91 | - return $this; |
|
92 | - } |
|
91 | + return $this; |
|
92 | + } |
|
93 | 93 | |
94 | - public function getUnitText() |
|
95 | - { |
|
96 | - return $this->_unitText; |
|
97 | - } |
|
94 | + public function getUnitText() |
|
95 | + { |
|
96 | + return $this->_unitText; |
|
97 | + } |
|
98 | 98 | |
99 | - private $_value; |
|
99 | + private $_value; |
|
100 | 100 | |
101 | - public function setValue($value) |
|
102 | - { |
|
103 | - $this->_value = $value; |
|
101 | + public function setValue($value) |
|
102 | + { |
|
103 | + $this->_value = $value; |
|
104 | 104 | |
105 | - return $this; |
|
106 | - } |
|
105 | + return $this; |
|
106 | + } |
|
107 | 107 | |
108 | - public function getValue() |
|
109 | - { |
|
110 | - return $this->_value; |
|
111 | - } |
|
108 | + public function getValue() |
|
109 | + { |
|
110 | + return $this->_value; |
|
111 | + } |
|
112 | 112 | } |
113 | 113 | \ No newline at end of file |
@@ -12,11 +12,11 @@ |
||
12 | 12 | { |
13 | 13 | use PropertyValueTrait; |
14 | 14 | |
15 | - /** |
|
16 | - * @inheritdoc |
|
17 | - */ |
|
18 | - public function typeDefintion() |
|
19 | - { |
|
20 | - return 'PropertyValue'; |
|
21 | - } |
|
15 | + /** |
|
16 | + * @inheritdoc |
|
17 | + */ |
|
18 | + public function typeDefintion() |
|
19 | + { |
|
20 | + return 'PropertyValue'; |
|
21 | + } |
|
22 | 22 | } |
23 | 23 | \ No newline at end of file |
@@ -44,8 +44,8 @@ discard block |
||
44 | 44 | protected function timeToIso8601Duration($time) |
45 | 45 | { |
46 | 46 | $units = array( |
47 | - "Y" => 365*24*3600, |
|
48 | - "D" => 24*3600, |
|
47 | + "Y" => 365 * 24 * 3600, |
|
48 | + "D" => 24 * 3600, |
|
49 | 49 | "H" => 3600, |
50 | 50 | "M" => 60, |
51 | 51 | "S" => 1, |
@@ -63,7 +63,7 @@ discard block |
||
63 | 63 | $str .= "T"; |
64 | 64 | $istime = true; |
65 | 65 | } |
66 | - $str .= strval($unit) . $unitName; |
|
66 | + $str .= strval($unit).$unitName; |
|
67 | 67 | } |
68 | 68 | } |
69 | 69 |
@@ -16,46 +16,46 @@ |
||
16 | 16 | * |
17 | 17 | * @param string $caption |
18 | 18 | */ |
19 | - public function setCaption($caption); |
|
19 | + public function setCaption($caption); |
|
20 | 20 | |
21 | - /** |
|
22 | - * Getter method for Caption. |
|
23 | - */ |
|
24 | - public function getCaption(); |
|
21 | + /** |
|
22 | + * Getter method for Caption. |
|
23 | + */ |
|
24 | + public function getCaption(); |
|
25 | 25 | |
26 | - /** |
|
27 | - * Setter method for exif data via PropertyValue. |
|
28 | - * |
|
29 | - * @param PropertyValue $propertyValue |
|
30 | - */ |
|
31 | - public function setExifData(PropertyValue $propertyValue); |
|
26 | + /** |
|
27 | + * Setter method for exif data via PropertyValue. |
|
28 | + * |
|
29 | + * @param PropertyValue $propertyValue |
|
30 | + */ |
|
31 | + public function setExifData(PropertyValue $propertyValue); |
|
32 | 32 | |
33 | - /** |
|
34 | - * Getter method for exit data. |
|
35 | - */ |
|
36 | - public function getExifData(); |
|
33 | + /** |
|
34 | + * Getter method for exit data. |
|
35 | + */ |
|
36 | + public function getExifData(); |
|
37 | 37 | |
38 | - /** |
|
39 | - * Setter method for representative of page value |
|
40 | - * |
|
41 | - * @param string $representativeOfPage |
|
42 | - */ |
|
43 | - public function setRepresentativeOfPage($representativeOfPage); |
|
38 | + /** |
|
39 | + * Setter method for representative of page value |
|
40 | + * |
|
41 | + * @param string $representativeOfPage |
|
42 | + */ |
|
43 | + public function setRepresentativeOfPage($representativeOfPage); |
|
44 | 44 | |
45 | - /** |
|
46 | - * Getter method for representative of page value |
|
47 | - */ |
|
48 | - public function getRepresentativeOfPage(); |
|
45 | + /** |
|
46 | + * Getter method for representative of page value |
|
47 | + */ |
|
48 | + public function getRepresentativeOfPage(); |
|
49 | 49 | |
50 | - /** |
|
51 | - * Setter method for Thumbnail. |
|
52 | - * |
|
53 | - * @param ImageObject $imageObject |
|
54 | - */ |
|
55 | - public function setThumbnail(ImageObject $imageObject); |
|
50 | + /** |
|
51 | + * Setter method for Thumbnail. |
|
52 | + * |
|
53 | + * @param ImageObject $imageObject |
|
54 | + */ |
|
55 | + public function setThumbnail(ImageObject $imageObject); |
|
56 | 56 | |
57 | - /** |
|
58 | - * Getter method for thumbnail. |
|
59 | - */ |
|
60 | - public function getThumbnail(); |
|
57 | + /** |
|
58 | + * Getter method for thumbnail. |
|
59 | + */ |
|
60 | + public function getThumbnail(); |
|
61 | 61 | } |
62 | 62 | \ No newline at end of file |
@@ -3,7 +3,7 @@ |
||
3 | 3 | namespace luya\web\jsonld; |
4 | 4 | |
5 | 5 | /** |
6 | - * JsonLd Comment Trait. |
|
6 | + * JsonLd Comment Trait. |
|
7 | 7 | * |
8 | 8 | * @see http://schema.org/Comment |
9 | 9 | * @author Basil Suter <[email protected]> |
@@ -13,82 +13,82 @@ |
||
13 | 13 | { |
14 | 14 | use MediaObjectTrait; |
15 | 15 | |
16 | - private $_caption; |
|
16 | + private $_caption; |
|
17 | 17 | |
18 | - /** |
|
19 | - * {@inheritdoc} |
|
20 | - */ |
|
21 | - public function setCaption($caption) |
|
22 | - { |
|
23 | - $this->_caption = $caption; |
|
24 | - return $this; |
|
25 | - } |
|
18 | + /** |
|
19 | + * {@inheritdoc} |
|
20 | + */ |
|
21 | + public function setCaption($caption) |
|
22 | + { |
|
23 | + $this->_caption = $caption; |
|
24 | + return $this; |
|
25 | + } |
|
26 | 26 | |
27 | - /** |
|
28 | - * {@inheritdoc} |
|
29 | - */ |
|
30 | - public function getCaption() |
|
31 | - { |
|
32 | - return $this->_caption; |
|
33 | - } |
|
27 | + /** |
|
28 | + * {@inheritdoc} |
|
29 | + */ |
|
30 | + public function getCaption() |
|
31 | + { |
|
32 | + return $this->_caption; |
|
33 | + } |
|
34 | 34 | |
35 | - private $_exifData; |
|
35 | + private $_exifData; |
|
36 | 36 | |
37 | - /** |
|
38 | - * {@inheritdoc} |
|
39 | - */ |
|
40 | - public function setExifData(PropertyValue $propertyValue) |
|
41 | - { |
|
42 | - $this->_exifData = $propertyValue; |
|
37 | + /** |
|
38 | + * {@inheritdoc} |
|
39 | + */ |
|
40 | + public function setExifData(PropertyValue $propertyValue) |
|
41 | + { |
|
42 | + $this->_exifData = $propertyValue; |
|
43 | 43 | |
44 | - return $this; |
|
45 | - } |
|
44 | + return $this; |
|
45 | + } |
|
46 | 46 | |
47 | - /** |
|
48 | - * {@inheritdoc} |
|
49 | - */ |
|
50 | - public function getExifData() |
|
51 | - { |
|
52 | - return $this->_exifData; |
|
53 | - } |
|
47 | + /** |
|
48 | + * {@inheritdoc} |
|
49 | + */ |
|
50 | + public function getExifData() |
|
51 | + { |
|
52 | + return $this->_exifData; |
|
53 | + } |
|
54 | 54 | |
55 | - private $_representativeOfPage; |
|
55 | + private $_representativeOfPage; |
|
56 | 56 | |
57 | - /** |
|
58 | - * {@inheritdoc} |
|
59 | - */ |
|
60 | - public function setRepresentativeOfPage($representativeOfPage) |
|
61 | - { |
|
62 | - $this->_representativeOfPage = $representativeOfPage; |
|
57 | + /** |
|
58 | + * {@inheritdoc} |
|
59 | + */ |
|
60 | + public function setRepresentativeOfPage($representativeOfPage) |
|
61 | + { |
|
62 | + $this->_representativeOfPage = $representativeOfPage; |
|
63 | 63 | |
64 | - return $this; |
|
65 | - } |
|
64 | + return $this; |
|
65 | + } |
|
66 | 66 | |
67 | - /** |
|
68 | - * {@inheritdoc} |
|
69 | - */ |
|
70 | - public function getRepresentativeOfPage() |
|
71 | - { |
|
72 | - return $this->_representativeOfPage; |
|
73 | - } |
|
67 | + /** |
|
68 | + * {@inheritdoc} |
|
69 | + */ |
|
70 | + public function getRepresentativeOfPage() |
|
71 | + { |
|
72 | + return $this->_representativeOfPage; |
|
73 | + } |
|
74 | 74 | |
75 | - private $_thumbnail; |
|
75 | + private $_thumbnail; |
|
76 | 76 | |
77 | - /** |
|
78 | - * {@inheritdoc} |
|
79 | - */ |
|
80 | - public function setThumbnail(ImageObject $imageObject) |
|
81 | - { |
|
82 | - $this->_thumbnail = $imageObject; |
|
77 | + /** |
|
78 | + * {@inheritdoc} |
|
79 | + */ |
|
80 | + public function setThumbnail(ImageObject $imageObject) |
|
81 | + { |
|
82 | + $this->_thumbnail = $imageObject; |
|
83 | 83 | |
84 | - return $this; |
|
85 | - } |
|
84 | + return $this; |
|
85 | + } |
|
86 | 86 | |
87 | - /** |
|
88 | - * {@inheritdoc} |
|
89 | - */ |
|
90 | - public function getThumbnail() |
|
91 | - { |
|
92 | - return $this->_thumbnail; |
|
93 | - } |
|
87 | + /** |
|
88 | + * {@inheritdoc} |
|
89 | + */ |
|
90 | + public function getThumbnail() |
|
91 | + { |
|
92 | + return $this->_thumbnail; |
|
93 | + } |
|
94 | 94 | } |
95 | 95 | \ No newline at end of file |