ProxyStore::getModel()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 3
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
namespace Ext\Data;
3
4
5
use Ext\Data\Field\Field;
6
use Ext\Data\Proxy\Proxy;
7
8
class ProxyStore extends AbstractStore
9
{
10
11
	public function addField(Field $field){
12
		return $this->add('fields',$field);
13
	}
14
15
	public function setFields(array $fields){
16
		foreach($fields as $field){
17
			$this->addField($field);
18
		}
19
		return $this;
20
	}
21
22
	public function setAutoLoad($autoLoad){
23
		return $this->setProperty('autoLoad',$autoLoad);
24
	}
25
26
	public function setProxy($proxy){
27
		return $this->setProperty('proxy',$proxy);
28
	}
29
30
	public function getProxy(){
31
		return $this->getProperty('proxy');
32
	}
33
	
34
	public function setModel($model){
35
		return $this->setProperty('model',$model);
36
	}
37
	
38
	public function getModel(){
39
		return $this->getProperty('model');
40
	}
41
	
42
	
43
44
45
46
}