1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122
<?php
namespace Gedcomx\Common;
use Gedcomx\Source\SourceReference;
/**
* Class CustomEntity
* @package Gedcomx\Common
*
* A class to support custom entity definitions
*/
class CustomEntity
{
private $id;
private $refToSomething;
private $uniqueKeyedItems;
private $keyedItems;
private $source;
public function __construct($id)
{
$this->id = $id;
}
/*
* return string
*/
public function getId()
{
return $this->id;
}
/**
* @param string $id
*/
public function setId($id)
{
$this->id = $id;
}
/**
* Set a reference to another object
*
* @return mixed
*/
public function getRefToSomething()
{
return $this->refToSomething;
}
/**
* Get the reference to another object
*
* @param mixed $refToSomething
*/
public function setRefToSomething($refToSomething)
{
$this->refToSomething = $refToSomething;
}
/**
* Get the list of keyed items for this object
*
* @return CustomKeyedItem[]
*/
public function getKeyedItems()
{
return $this->keyedItems;
}
/**
* Set the list of keyed items for this object
*
* @param CustomKeyedItem[] $keyedItems
*/
public function setKeyedItems(array $keyedItems)
{
$this->keyedItems = $keyedItems;
}
/**
* Get the array of uniquely keyed items for this object
*
* @return UniqueCustomKeyedItem[]
*/
public function getUniqueKeyedItems()
{
return $this->uniqueKeyedItems;
}
/**
* Set array of uniquely keyed items for this object
*
* @param UniqueCustomKeyedItem[] $uniqueKeyedItems
*/
public function setUniqueKeyedItems(array $uniqueKeyedItems)
{
$this->uniqueKeyedItems = $uniqueKeyedItems;
}
/**
* Get the source reference for this object
*
* @return \Gedcomx\Source\SourceReference
*/
public function getSource()
{
return $this->source;
}
/**
* Set the source reference for this object
*
* @param \Gedcomx\Source\SourceReference $source
*/
public function setSource(SourceReference $source)
{
$this->source = $source;
}
}