Skip to content

Commit 7b4fafa

Browse files
committed
added getId method
1 parent 9614f77 commit 7b4fafa

File tree

3 files changed

+18
-0
lines changed

3 files changed

+18
-0
lines changed

src/Session/Session.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,12 @@ interface Session {
1818
*/
1919
static function getInstance();
2020

21+
/**
22+
* This method eturns the session id
23+
* @return string , session id
24+
*/
25+
function getId();
26+
2127
/**
2228
* Returns the session value stored for this key , null if no value is available for the provided key
2329
* @param $key string in JSON format representing a unque path to a value

tests/Session/SampleSessionImpl.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,12 @@ static function getInstance(){
2323
return self::$instance;
2424
}
2525

26+
/**
27+
* This method eturns the session id
28+
* @return string , session id
29+
*/
30+
function getId(){}
31+
2632
/**
2733
* Returns the session value stored for this key , null if no value is available for the provided key
2834
* @param $key string in JSON format representing a unque path to a value

tests/Session/SampleSessionWithoutInterface.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,12 @@ static function getInstance(){
2323
return self::$instance;
2424
}
2525

26+
/**
27+
* This method eturns the session id
28+
* @return string , session id
29+
*/
30+
function getId(){}
31+
2632
/**
2733
* Returns the session value stored for this key , null if no value is available for the provided key
2834
* @param $key string in JSON format representing a unque path to a value

0 commit comments

Comments
 (0)