@@ -33,13 +33,13 @@ |
||
33 | 33 | */ |
34 | 34 | abstract class AnyType |
35 | 35 | { |
36 | - /** |
|
37 | - * |
|
38 | - * Add attribute to the given element. |
|
39 | - * |
|
40 | - * The data type are responsible to add the given attribute, content child |
|
41 | - * to the Element. |
|
42 | - * |
|
43 | - */ |
|
36 | + /** |
|
37 | + * |
|
38 | + * Add attribute to the given element. |
|
39 | + * |
|
40 | + * The data type are responsible to add the given attribute, content child |
|
41 | + * to the Element. |
|
42 | + * |
|
43 | + */ |
|
44 | 44 | abstract public function setValueToElement(\DOMElement &$el, \DOMDocument $doc = null); |
45 | 45 | } |
@@ -61,7 +61,7 @@ |
||
61 | 61 | * {@overrideDoc} |
62 | 62 | * |
63 | 63 | * @param \DOMDocument $doc |
64 | - * @return type |
|
64 | + * @return \DOMNode |
|
65 | 65 | */ |
66 | 66 | public function toDOMElement(\DOMDocument $doc) |
67 | 67 | { |
@@ -52,6 +52,9 @@ |
||
52 | 52 | return $this->value; |
53 | 53 | } |
54 | 54 | |
55 | + /** |
|
56 | + * @return string |
|
57 | + */ |
|
55 | 58 | public function getTag() |
56 | 59 | { |
57 | 60 | return $this->tag; |
@@ -40,7 +40,7 @@ |
||
40 | 40 | // only for php7.0 |
41 | 41 | $data = random_bytes(16); |
42 | 42 | |
43 | - //assert(strlen($data) == 16); |
|
43 | + //assert(strlen($data) == 16); |
|
44 | 44 | |
45 | 45 | $data[6] = chr(ord($data[6]) & 0x0f | 0x40); // set version to 0100 |
46 | 46 | $data[8] = chr(ord($data[8]) & 0x3f | 0x80); // set bits 6-7 to 10 |
@@ -161,7 +161,7 @@ discard block |
||
161 | 161 | |
162 | 162 | /** |
163 | 163 | * |
164 | - * @return string |
|
164 | + * @return Title |
|
165 | 165 | */ |
166 | 166 | public function getTitle() |
167 | 167 | { |
@@ -171,7 +171,7 @@ discard block |
||
171 | 171 | /** |
172 | 172 | * |
173 | 173 | * @param \PHPHealth\CDA\Elements\Title $title |
174 | - * @return \PHPHealth\CDA2\ClinicalDocument |
|
174 | + * @return ClinicalDocument |
|
175 | 175 | */ |
176 | 176 | public function setTitle(Title $title) |
177 | 177 | { |
@@ -49,6 +49,9 @@ |
||
49 | 49 | } |
50 | 50 | |
51 | 51 | |
52 | + /** |
|
53 | + * @param string $type |
|
54 | + */ |
|
52 | 55 | private function addElement($type, $content) |
53 | 56 | { |
54 | 57 | $this->elements[] = [$type, $content]; |
@@ -69,10 +69,10 @@ |
||
69 | 69 | } |
70 | 70 | |
71 | 71 | /** |
72 | - * |
|
73 | - * @param type $ref |
|
74 | - * @return ReferenceElement |
|
75 | - */ |
|
72 | + * |
|
73 | + * @param type $ref |
|
74 | + * @return ReferenceElement |
|
75 | + */ |
|
76 | 76 | public function getReferenceElement($ref) |
77 | 77 | { |
78 | 78 | if (! array_key_exists($ref, $this->elementReferences)) { |