-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathRule.php
49 lines (34 loc) · 1002 Bytes
/
Rule.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
<?php
/**
* Created by PhpStorm.
* User: bwalleshauser
* Date: 4/8/2015
* Time: 5:45 PM
*/
class Mainstreethost_GatorTraxBoatBuilder_Model_Json_Rule
extends Mainstreethost_GatorTraxBoatBuilder_Model_Json_Abstract
implements Mainstreethost_GatorTraxBoatBuilder_Model_Json_IAutojson
{
private $id;
private $optionId;
private $optionValueId;
private $targetOptionId;
private $targetOptionValueId;
private $operator;
public function __construct()
{
}
public function Hydrate($rule)
{
$this->id = (int)$rule->getRuleId();
$this->optionId = (int)$rule->getOptionId();
$this->optionValueId = (int)$rule->getOptionValueId();
$this->targetOptionId = (int)$rule->getTargetOptionId();
$this->targetOptionValueId = (int)$rule->getTargetOptionValueId();
return $this;
}
public function get($member)
{
return $this->$member;
}
}