MediaWiki REL1_35
SessionId.php
Go to the documentation of this file.
1<?php
24namespace MediaWiki\Session;
25
40final class SessionId {
42 private $id;
43
49 public function __construct( $id ) {
50 $this->id = $id;
51 }
52
57 public function getId() {
58 return $this->id;
59 }
60
66 public function setId( $id ) {
67 $this->id = $id;
68 }
69
70 public function __toString() {
71 return $this->id;
72 }
73
74}
Value object holding the session ID in a manner that can be globally updated.
Definition SessionId.php:40
__construct( $id)
Stable to call.
Definition SessionId.php:49
setId( $id)
Set the ID.
Definition SessionId.php:66