Completed
Push — master ( ad3030...babf12 )
by Thomas
04:37
created

Session::getId()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 3
rs 10
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
namespace keeko\core\model;
3
4
use keeko\core\model\Base\Session as BaseSession;
5
use keeko\core\serializer\SessionSerializer;
6
use keeko\framework\model\ApiModelInterface;
7
8
/**
9
 * Skeleton subclass for representing a row from the 'kk_session' table.
10
 * 
11
 * You should add additional methods to this class to meet the
12
 * application requirements.  This class will only be generated as
13
 * long as it does not already exist in the output directory.
14
 */
15
class Session extends BaseSession implements ApiModelInterface {
16
17
	/**
18
	 */
19
	private static $serializer;
20
21
	/**
22
	 * @return SessionSerializer
23
	 */
24
	public static function getSerializer() {
25
		if (self::$serializer === null) {
26
			self::$serializer = new SessionSerializer();
27
		}
28
29
		return self::$serializer;
30
	}
31
32
	/**
33
	 */
34
	public function getId() {
0 ignored issues
show
Documentation introduced by
The return type could not be reliably inferred; please add a @return annotation.

Our type inference engine in quite powerful, but sometimes the code does not provide enough clues to go by. In these cases we request you to add a @return annotation as described here.

Loading history...
35
		return $this->getToken();
36
	}
37
}
38