Completed
Push — master ( fc1ed5...2b696b )
by Haralan
02:27
created

Kohana_Jam_Exception_NotLoaded::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 6
c 0
b 0
f 0
rs 9.4285
cc 1
eloc 3
nc 1
nop 3
1
<?php defined('SYSPATH') OR die('No direct access allowed.');
2
3
/**
4
 * Resource_Jam_Exception_NotLoaded class
5
 * Jam NotLoaded Exception
6
 *
7
 * @package    Despark/http-resource
8
 * @author     Haralan Dobrev
9
 * @copyright  (c) 2012 Despark Ltd.
10
 * @license    http://creativecommons.org/licenses/by-sa/3.0/legalcode
11
 */
12
class Kohana_Jam_Exception_NotLoaded extends Kohana_Exception {
13
14
	public $model;
15
16
	function __construct($message, $model, $fields = NULL)
0 ignored issues
show
Best Practice introduced by
It is generally recommended to explicitly declare the visibility for methods.

Adding explicit visibility (private, protected, or public) is generally recommend to communicate to other developers how, and from where this method is intended to be used.

Loading history...
17
	{
18
		$fields[':model'] = $this->model = $model;
19
20
		parent::__construct($message, $fields);
21
	}
22
}
23