-
Notifications
You must be signed in to change notification settings - Fork 0
/
Input.php
43 lines (31 loc) · 904 Bytes
/
Input.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
<?php
namespace Sf2gen\Component\PhpCoder;
class Input extends Property {
protected $byRef = false;
public function __construct($varName) {
$this->visibility = false;
$this->isStatic = false;
parent::__construct($varName);
}
public function setVisibility($visibility) {
//removing possibility to set visible
return $this;
}
public function setStatic($static) {
//removing possibility to set static
return $this;
}
public function getByReference() {
return ($this->byRef ? '&' : '');
}
public function setByReference($byRef) {
$this->byRef = (bool)$byRef;
return $this;
}
public function getDollar() {
return $this->getByReference() . '$';
}
public function getEndOfLine() {
return '';
}
}