src/MyOrganizers/ReadModel/Projector.php 1 location
|
@@ 120-130 (lines=11) @@
|
| 117 |
|
* |
| 118 |
|
* @return null|string |
| 119 |
|
*/ |
| 120 |
|
private function resolveUserId(\CultureFeed_Cdb_Item_Base $udb2Item) |
| 121 |
|
{ |
| 122 |
|
$createdByIdentifier = $udb2Item->getCreatedBy(); |
| 123 |
|
if ($createdByIdentifier) { |
| 124 |
|
$userId = $this->userIdResolver->resolveCreatedByToUserId( |
| 125 |
|
new StringLiteral($createdByIdentifier) |
| 126 |
|
); |
| 127 |
|
} |
| 128 |
|
|
| 129 |
|
return isset($userId) ? (string)$userId : ''; |
| 130 |
|
} |
| 131 |
|
|
| 132 |
|
/** |
| 133 |
|
* @param string $dateString |
src/ReadModel/Index/Projector.php 1 location
|
@@ 136-146 (lines=11) @@
|
| 133 |
|
* |
| 134 |
|
* @return null|string |
| 135 |
|
*/ |
| 136 |
|
protected function resolveUserId(\CultureFeed_Cdb_Item_Base $udb2Item) |
| 137 |
|
{ |
| 138 |
|
$createdByIdentifier = $udb2Item->getCreatedBy(); |
| 139 |
|
if ($createdByIdentifier) { |
| 140 |
|
$userId = $this->userIdResolver->resolveCreatedByToUserId( |
| 141 |
|
new StringLiteral($createdByIdentifier) |
| 142 |
|
); |
| 143 |
|
} |
| 144 |
|
|
| 145 |
|
return isset($userId) ? (string) $userId : ''; |
| 146 |
|
} |
| 147 |
|
|
| 148 |
|
/** |
| 149 |
|
* |