@@ 15-53 (lines=39) @@ | ||
12 | * |
|
13 | * XSD Type: TParameterReferenceExpression |
|
14 | */ |
|
15 | class TParameterReferenceExpressionType extends IsOK |
|
16 | { |
|
17 | use IsOKToolboxTrait, TSimpleIdentifierTrait; |
|
18 | /** |
|
19 | * @property string $name |
|
20 | */ |
|
21 | private $name = null; |
|
22 | ||
23 | /** |
|
24 | * Gets as name |
|
25 | * |
|
26 | * @return string |
|
27 | */ |
|
28 | public function getName() |
|
29 | { |
|
30 | return $this->name; |
|
31 | } |
|
32 | ||
33 | /** |
|
34 | * Sets a new name |
|
35 | * |
|
36 | * @param string $name |
|
37 | * @return self |
|
38 | */ |
|
39 | public function setName($name) |
|
40 | { |
|
41 | $this->name = $name; |
|
42 | return $this; |
|
43 | } |
|
44 | ||
45 | public function isOK(&$msg = null) |
|
46 | { |
|
47 | if (!$this->isTSimpleIdentifierValid($this->name)) { |
|
48 | $msg = "Name must be a valid TSimpleIdentifierValid"; |
|
49 | return false; |
|
50 | } |
|
51 | return true; |
|
52 | } |
|
53 | } |
|
54 |
@@ 15-53 (lines=39) @@ | ||
12 | * |
|
13 | * XSD Type: TPropertyRef |
|
14 | */ |
|
15 | class TPropertyRefType extends IsOK |
|
16 | { |
|
17 | use IsOKToolboxTrait, TSimpleIdentifierTrait; |
|
18 | /** |
|
19 | * @property string $name |
|
20 | */ |
|
21 | private $name = null; |
|
22 | ||
23 | /** |
|
24 | * Gets as name |
|
25 | * |
|
26 | * @return string |
|
27 | */ |
|
28 | public function getName() |
|
29 | { |
|
30 | return $this->name; |
|
31 | } |
|
32 | ||
33 | /** |
|
34 | * Sets a new name |
|
35 | * |
|
36 | * @param string $name |
|
37 | * @return self |
|
38 | */ |
|
39 | public function setName($name) |
|
40 | { |
|
41 | $this->name = $name; |
|
42 | return $this; |
|
43 | } |
|
44 | ||
45 | public function isOK(&$msg = null) |
|
46 | { |
|
47 | if (!$this->isTSimpleIdentifierValid($this->name)) { |
|
48 | $msg = "Name must be a valid TSimpleIdentifierValid"; |
|
49 | return false; |
|
50 | } |
|
51 | return true; |
|
52 | } |
|
53 | } |
|
54 |