@@ 64-72 (lines=9) @@ | ||
61 | * @return ObjectIdInterface|null the source ID or <code>null</code> if the property hasn't been requested, |
|
62 | * hasn't been provided by the repository, or the property value isn't set |
|
63 | */ |
|
64 | public function getSourceId() |
|
65 | { |
|
66 | $sourceId = $this->getPropertyValue(PropertyIds::SOURCE_ID); |
|
67 | if (empty($sourceId)) { |
|
68 | return null; |
|
69 | } |
|
70 | ||
71 | return $this->getSession()->createObjectId($sourceId); |
|
72 | } |
|
73 | ||
74 | /** |
|
75 | * Returns the target ID of this CMIS relationship (CMIS property cmis:targetId). |
|
@@ 80-88 (lines=9) @@ | ||
77 | * @return ObjectIdInterface the target ID or <code>null</code> if the property hasn't been requested, |
|
78 | * hasn't been provided by the repository, or the property value isn't set |
|
79 | */ |
|
80 | public function getTargetId() |
|
81 | { |
|
82 | $targetId = $this->getPropertyValue(PropertyIds::TARGET_ID); |
|
83 | if (empty($targetId)) { |
|
84 | return null; |
|
85 | } |
|
86 | ||
87 | return $this->getSession()->createObjectId($targetId); |
|
88 | } |
|
89 | } |
|
90 |