MediaWiki  master
SessionId.php
Go to the documentation of this file.
1 <?php
24 namespace MediaWiki\Session;
25 
40 final 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 }
MediaWiki\Session\SessionId\$id
string $id
Definition: SessionId.php:42
MediaWiki\Session\SessionId\getId
getId()
Get the ID.
Definition: SessionId.php:57
MediaWiki\Session
Definition: BotPasswordSessionProvider.php:24
MediaWiki\Session\SessionId\setId
setId( $id)
Set the ID.
Definition: SessionId.php:66
MediaWiki\Session\SessionId\__construct
__construct( $id)
Stable to call.
Definition: SessionId.php:49
MediaWiki\Session\SessionId\__toString
__toString()
Definition: SessionId.php:70
MediaWiki\Session\SessionId
Value object holding the session ID in a manner that can be globally updated.
Definition: SessionId.php:40