MediaWiki REL1_30
SessionId.php
Go to the documentation of this file.
1<?php
24namespace MediaWiki\Session;
25
38final class SessionId {
40 private $id;
41
45 public function __construct( $id ) {
46 $this->id = $id;
47 }
48
53 public function getId() {
54 return $this->id;
55 }
56
62 public function setId( $id ) {
63 $this->id = $id;
64 }
65
66 public function __toString() {
67 return $this->id;
68 }
69
70}
Value object holding the session ID in a manner that can be globally updated.
Definition SessionId.php:38
setId( $id)
Set the ID.
Definition SessionId.php:62