Completed
Push — master ( 1d4c8e...a7ae23 )
by Thomas
16:08 queued 10:12
created

Activity   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 2
Bugs 0 Features 0
Metric Value
wmc 2
c 2
b 0
f 0
lcom 0
cbo 1
dl 0
loc 16
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A getSerializer() 0 7 2
1
<?php
2
namespace keeko\core\model;
3
4
use keeko\core\model\Base\Activity as BaseActivity;
5
use keeko\core\model\serializer\ActivitySerializer;
6
use keeko\framework\model\ApiModelInterface;
7
8
/**
9
 * Skeleton subclass for representing a row from the 'kk_activity' 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 Activity extends BaseActivity implements ApiModelInterface {
16
17
	/**
18
	 */
19
	private static $serializer;
20
21
	/**
22
	 */
23
	public static function getSerializer() {
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...
24
		if (self::$serializer === null) {
25
			self::$serializer = new ActivitySerializer();
26
		}
27
28
		return self::$serializer;
29
	}
30
}
31