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

ScopeManager::reset()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 5
ccs 0
cts 3
cp 0
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 3
nc 1
nop 0
crap 2
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