1 | <?php |
||
38 | abstract class Entity extends AbstractElement implements HasClassCode |
||
39 | { |
||
|
|||
40 | /** |
||
41 | * |
||
42 | * @var Set|InstanceIdentifier[] |
||
43 | */ |
||
44 | protected $id; |
||
45 | |||
46 | /** |
||
47 | * |
||
48 | * @var Set|\PHPHealth\CDA\DataType\Name\PersonName[] |
||
49 | */ |
||
50 | protected $names; |
||
51 | |||
52 | /** |
||
53 | * return the default class code |
||
54 | * |
||
55 | * @return string |
||
56 | */ |
||
57 | abstract public function getDefaultClassCode(); |
||
58 | |||
59 | /** |
||
60 | * Return the default class code |
||
61 | * |
||
62 | * @return string |
||
63 | */ |
||
64 | public function getClassCode() |
||
68 | |||
69 | public function getId(): Set |
||
73 | |||
74 | public function setId(Set $id) |
||
82 | |||
83 | |||
84 | public function getNames() |
||
88 | |||
89 | public function setNames(Set $names) |
||
95 | |||
96 | /** |
||
97 | * |
||
98 | * @param \DOMDocument $doc |
||
99 | * @param string[] $properties the name of the properties to apply on element |
||
100 | * @return \DOMElement |
||
101 | */ |
||
102 | /*protected function createElement(\DOMDocument $doc, array $properties = array()) |
||
103 | { |
||
104 | $el = parent::createElement($doc, $properties); |
||
105 | |||
106 | if (! empty($this->getClassCode())) { |
||
107 | $el->setAttribute(CDA::NS_CDA.'classCode', $this->getClassCode()); |
||
108 | } |
||
109 | |||
110 | return $el; |
||
111 | }*/ |
||
112 | |||
113 | } |
||
114 |