1 |
a6ae799b
|
Andreas Kohlbecker
|
<?php
|
2 |
|
|
|
3 |
|
|
/**
|
4 |
|
|
* TypedEntityReference is a class used in the cdmlib. This php impementation of TypedEntityReference
|
5 |
|
|
* can be used to wrap type and uuid into an object suitable to be passed to methods like:
|
6 |
|
|
* - @see html_class_attribute_ref()
|
7 |
|
|
*
|
8 |
|
|
* User: andreas
|
9 |
|
|
* Date: 16.07.18
|
10 |
|
|
* Time: 18:58
|
11 |
|
|
*/
|
12 |
|
|
|
13 |
|
|
class TypedEntityReference
|
14 |
|
|
{
|
15 |
|
|
public $type;
|
16 |
|
|
public $uuid;
|
17 |
|
|
public $class = 'TypedEntityReference';
|
18 |
|
|
/**
|
19 |
|
|
* Private constructor.
|
20 |
|
|
*/
|
21 |
|
|
public function __construct($type, $uuid) {
|
22 |
|
|
$this->$type = $type;
|
23 |
|
|
$this->$uuid = $uuid;
|
24 |
|
|
}
|
25 |
|
|
|
26 |
|
|
}
|