| Conditions | 1 |
| Paths | 1 |
| Total Lines | 13 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 40 | public function createWithValues(Location $location, User $user) |
||
| 41 | { |
||
| 42 | $dt = new DateTime(); |
||
| 43 | $ezInfo = $this->getInstance(); |
||
| 44 | |||
| 45 | $ezInfo->setContentObjectId($location->getContentInfo()->id); |
||
| 46 | $ezInfo->setUserIdentifier($user->login); |
||
| 47 | $ezInfo->setCreatorId($user->id); |
||
| 48 | $ezInfo->setCreated($dt->getTimestamp()); |
||
| 49 | $ezInfo->setModified($dt->getTimestamp()); |
||
| 50 | |||
| 51 | return $ezInfo; |
||
| 52 | } |
||
| 53 | } |
||
| 54 |