public function __construct(Session $value) { $this->sessionId = $value->getId(); $this->creationDate = $value->getCreationDate(); $this->lastModified = $value->getLastModified(); $this->lifetime = $value->getLifetime(); $this->userAgent = $value->getUserAgent(); $this->remoteAddress = $value->getRemoteAddress(); }