-
Notifications
You must be signed in to change notification settings - Fork 126
/
Copy pathCFGEdge.php
130 lines (98 loc) · 2.08 KB
/
CFGEdge.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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
<?php
class CFGEdge{
private $source ; //边的来源
private $destination ; //边的目的
private $condition ; //边上携带的条件
private $sanitization_info ; //边上携带的sanitization信息
private $encoding_info ; //边上携带的编码信息
//构造函数
public function __construct($source,$destination){
$this->sanitization_info = array() ;
$this->encoding_info = array() ;
$this->source = $source ;
$this->destination = $destination ;
}
/**
* 添加新的sanitization信息
* @param unknown $info
*/
public function addSanitinazionInfo($info){
if($info){
array_push($this->sanitization_info, $info) ;
}else{
return ;
}
}
/**
* 添加新的encoding信息
* @param unknown $info
*/
public function addEncodingInfo($info){
if($info){
array_push($this->encoding_info, $info) ;
}else{
return ;
}
}
/**
* @return the $source
*/
public function getSource() {
return $this->source;
}
/**
* @return the $destination
*/
public function getDestination() {
return $this->destination;
}
/**
* @return the $condition
*/
public function getCondition() {
return $this->condition;
}
/**
* @return the $sanitization_info
*/
public function getSanitization_info() {
return $this->sanitization_info;
}
/**
* @return the $encoding_info
*/
public function getEncoding_info() {
return $this->encoding_info;
}
/**
* @param field_type $source
*/
public function setSource($source) {
$this->source = $source;
}
/**
* @param field_type $destination
*/
public function setDestination($destination) {
$this->destination = $destination;
}
/**
* @param field_type $condition
*/
public function setCondition($condition) {
$this->condition = $condition;
}
/**
* @param multitype: $sanitization_info
*/
public function setSanitization_info($sanitization_info) {
$this->sanitization_info = $sanitization_info;
}
/**
* @param multitype: $encoding_info
*/
public function setEncoding_info($encoding_info) {
$this->encoding_info = $encoding_info;
}
}
?>