1 | <?php |
||
8 | class SerializableMock2 implements SerializableInterface |
||
9 | { |
||
10 | use SerializableTrait; |
||
11 | |||
12 | protected $id = 2; |
||
13 | protected $label = 'mock_2_label'; |
||
14 | protected $table = array('mock_2_1', 'mock_2_1'); |
||
15 | |||
16 | public function getId() |
||
17 | { |
||
18 | return $this->id; |
||
19 | } |
||
20 | |||
21 | public function setId($id) |
||
22 | { |
||
23 | $this->id = $id; |
||
24 | |||
25 | return $this; |
||
26 | } |
||
27 | |||
28 | public function getLabel() |
||
29 | { |
||
30 | return $this->label; |
||
31 | } |
||
32 | |||
33 | public function setLabel($label) |
||
34 | { |
||
35 | $this->label = $label; |
||
36 | |||
37 | return $this; |
||
38 | } |
||
39 | |||
40 | public function getTable() |
||
41 | { |
||
42 | return $this->table; |
||
43 | } |
||
44 | |||
45 | public function setTable(array $table) |
||
46 | { |
||
47 | $this->table = $table; |
||
48 | |||
49 | return $this; |
||
50 | } |
||
51 | |||
52 | /** |
||
53 | * @see ScopableInterface::getScopes() |
||
54 | */ |
||
55 | public static function getScopes() |
||
56 | { |
||
57 | return array( |
||
58 | 'default' => array('id', 'label', 'table'), |
||
59 | 'id' => 'id', |
||
60 | ); |
||
61 | } |
||
62 | } |
||
63 |