Completed
Push — master ( f32624...4e9dd5 )
by Peter
05:55
created

ScopeManager   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 2
dl 0
loc 14
ccs 5
cts 5
cp 1
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A getNewCriteria() 0 4 1
1
<?php
2
3
/**
4
 * This software package is licensed under AGPL or Commercial license.
5
 *
6
 * @package maslosoft/mangan
7
 * @licence AGPL or Commercial
8
 * @copyright Copyright (c) Piotr Masełkowski <[email protected]>
9
 * @copyright Copyright (c) Maslosoft
10
 * @copyright Copyright (c) Others as mentioned in code
11
 * @link http://maslosoft.com/mangan/
12
 */
13
14
namespace Maslosoft\Mangan;
15
16
use Maslosoft\Mangan\Abstracts\AbstractScopeManager;
17
use Maslosoft\Mangan\Interfaces\ScopeManagerInterface;
18
19
/**
20
 * ScopeManager
21
 *
22
 * @author Piotr Maselkowski <pmaselkowski at gmail.com>
23
 */
24
class ScopeManager extends AbstractScopeManager implements ScopeManagerInterface
25
{
26
27 91
	public function __construct($model)
28
	{
29 91
		$this->model = $model;
0 ignored issues
show
Bug introduced by
The property model cannot be accessed from this context as it is declared private in class Maslosoft\Mangan\Abstracts\AbstractScopeManager.

This check looks for access to properties that are not accessible from the current context.

If you need to make a property accessible to another context you can either raise its visibility level or provide an accessible getter in the defining class.

Loading history...
30 91
	}
31
32 86
	protected function getNewCriteria($criteria = null)
33
	{
34 86
		return new Criteria($criteria);
35
	}
36
37
}
38