@@ 111-124 (lines=14) @@ | ||
108 | * @param string $multiplicity |
|
109 | * @return self |
|
110 | */ |
|
111 | public function setMultiplicity($multiplicity) |
|
112 | { |
|
113 | $msg = null; |
|
114 | if (!$this->isStringNotNullOrEmpty($multiplicity)) { |
|
115 | $msg = "Multiplicity cannot be null or empty"; |
|
116 | throw new \InvalidArgumentException($msg); |
|
117 | } |
|
118 | if (!$this->isTMultiplicityValid($multiplicity)) { |
|
119 | $msg = "Multiplicity must be a valid TMultiplicity"; |
|
120 | throw new \InvalidArgumentException($msg); |
|
121 | } |
|
122 | $this->multiplicity = $multiplicity; |
|
123 | return $this; |
|
124 | } |
|
125 | ||
126 | /** |
|
127 | * Gets as documentation |
@@ 95-108 (lines=14) @@ | ||
92 | * @param string $name |
|
93 | * @return self |
|
94 | */ |
|
95 | public function setName($name) |
|
96 | { |
|
97 | $msg = null; |
|
98 | if (!$this->isStringNotNullOrEmpty($name)) { |
|
99 | $msg = "Name cannot be null or empty"; |
|
100 | throw new \InvalidArgumentException($msg); |
|
101 | } |
|
102 | if (!$this->isTSimpleIdentifierValid($name)) { |
|
103 | $msg = "Name must be valid TSimpleIdentifier"; |
|
104 | throw new \InvalidArgumentException($msg); |
|
105 | } |
|
106 | $this->name = $name; |
|
107 | return $this; |
|
108 | } |
|
109 | ||
110 | /** |
|
111 | * Gets as type |
|
@@ 126-139 (lines=14) @@ | ||
123 | * @param string $type |
|
124 | * @return self |
|
125 | */ |
|
126 | public function setType($type) |
|
127 | { |
|
128 | $msg = null; |
|
129 | if (!$this->isStringNotNullOrEmpty($type)) { |
|
130 | $msg = "Type cannot be null or empty"; |
|
131 | throw new \InvalidArgumentException($msg); |
|
132 | } |
|
133 | if (!$this->isTPropertyTypeValid($type)) { |
|
134 | $msg = "Type must be valid TPropertyType"; |
|
135 | throw new \InvalidArgumentException($msg); |
|
136 | } |
|
137 | $this->type = $type; |
|
138 | return $this; |
|
139 | } |
|
140 | ||
141 | /** |
|
142 | * Gets as nullable |
@@ 96-109 (lines=14) @@ | ||
93 | * @param string $name |
|
94 | * @return self |
|
95 | */ |
|
96 | public function setName($name) |
|
97 | { |
|
98 | $msg = null; |
|
99 | if (!$this->isStringNotNullOrEmpty($name)) { |
|
100 | $msg = "Name cannot be null or empty"; |
|
101 | throw new \InvalidArgumentException($msg); |
|
102 | } |
|
103 | if (!$this->isTUndottedIdentifierValid($name)) { |
|
104 | $msg = "Name must be a valid TUndottedIdentifier"; |
|
105 | throw new \InvalidArgumentException($msg); |
|
106 | } |
|
107 | $this->name = $name; |
|
108 | return $this; |
|
109 | } |
|
110 | ||
111 | /** |
|
112 | * Adds as returnType |
@@ 101-114 (lines=14) @@ | ||
98 | * @param string $type |
|
99 | * @return self |
|
100 | */ |
|
101 | public function setType($type) |
|
102 | { |
|
103 | $msg = null; |
|
104 | if (!$this->isStringNotNullOrEmpty($type)) { |
|
105 | $msg = "Type cannot be null or empty"; |
|
106 | throw new \InvalidArgumentException($msg); |
|
107 | } |
|
108 | if (null != $type && !$this->isTFunctionTypeValid($type)) { |
|
109 | $msg = "Type must be a valid TFunctionType"; |
|
110 | throw new \InvalidArgumentException($msg); |
|
111 | } |
|
112 | $this->type = $type; |
|
113 | return $this; |
|
114 | } |
|
115 | ||
116 | /** |
|
117 | * Gets as mode |
@@ 89-102 (lines=14) @@ | ||
86 | * @param string $name |
|
87 | * @return self |
|
88 | */ |
|
89 | public function setName($name) |
|
90 | { |
|
91 | $msg = null; |
|
92 | if (!$this->isStringNotNullOrEmpty($name)) { |
|
93 | $msg = "Name cannot be null or empty"; |
|
94 | throw new \InvalidArgumentException($msg); |
|
95 | } |
|
96 | if (!$this->isTSimpleIdentifierValid($name)) { |
|
97 | $msg = "Name must be valid TSimpleIdentifier"; |
|
98 | throw new \InvalidArgumentException($msg); |
|
99 | } |
|
100 | $this->name = $name; |
|
101 | return $this; |
|
102 | } |
|
103 | ||
104 | /** |
|
105 | * Gets as type |
|
@@ 120-133 (lines=14) @@ | ||
117 | * @param string $type |
|
118 | * @return self |
|
119 | */ |
|
120 | public function setType($type) |
|
121 | { |
|
122 | $msg = null; |
|
123 | if (!$this->isStringNotNullOrEmpty($type)) { |
|
124 | $msg = "Type cannot be null or empty"; |
|
125 | throw new \InvalidArgumentException($msg); |
|
126 | } |
|
127 | if (!$this->isTPropertyTypeValid($type)) { |
|
128 | $msg = "Type must be valid TPropertyType"; |
|
129 | throw new \InvalidArgumentException($msg); |
|
130 | } |
|
131 | $this->type = $type; |
|
132 | return $this; |
|
133 | } |
|
134 | ||
135 | /** |
|
136 | * Gets as nullable |
@@ 54-67 (lines=14) @@ | ||
51 | * @param string $namespace |
|
52 | * @return self |
|
53 | */ |
|
54 | public function setNamespace($namespace) |
|
55 | { |
|
56 | $msg = null; |
|
57 | if (!$this->isStringNotNullOrEmpty($namespace)) { |
|
58 | $msg = "Namespace cannot be null or empty"; |
|
59 | throw new \InvalidArgumentException($msg); |
|
60 | } |
|
61 | if (!$this->isTQualifiedNameValid($namespace)) { |
|
62 | $msg = "Namespace must be valid TQualifiedName"; |
|
63 | throw new \InvalidArgumentException($msg); |
|
64 | } |
|
65 | $this->namespace = $namespace; |
|
66 | return $this; |
|
67 | } |
|
68 | ||
69 | /** |
|
70 | * Gets as alias |
|
@@ 85-98 (lines=14) @@ | ||
82 | * @param string $alias |
|
83 | * @return self |
|
84 | */ |
|
85 | public function setAlias($alias) |
|
86 | { |
|
87 | $msg = null; |
|
88 | if (!$this->isStringNotNullOrEmpty($alias)) { |
|
89 | $msg = "Alias cannot be empty"; |
|
90 | throw new \InvalidArgumentException($msg); |
|
91 | } |
|
92 | if (null != $alias && !$this->isTSimpleIdentifierValid($alias)) { |
|
93 | $msg = "Alias must be valid TSimpleIdentifier"; |
|
94 | throw new \InvalidArgumentException($msg); |
|
95 | } |
|
96 | $this->alias = $alias; |
|
97 | return $this; |
|
98 | } |
|
99 | ||
100 | /** |
|
101 | * Gets as provider |
|
@@ 116-129 (lines=14) @@ | ||
113 | * @param string $provider |
|
114 | * @return self |
|
115 | */ |
|
116 | public function setProvider($provider) |
|
117 | { |
|
118 | $msg = null; |
|
119 | if (!$this->isStringNotNullOrEmpty($provider)) { |
|
120 | $msg = "Provider cannot be null or empty"; |
|
121 | throw new \InvalidArgumentException($msg); |
|
122 | } |
|
123 | if (!$this->isTSimpleIdentifierValid($provider)) { |
|
124 | $msg = "Provider must be valid TSimpleIdentifier"; |
|
125 | throw new \InvalidArgumentException($msg); |
|
126 | } |
|
127 | $this->provider = $provider; |
|
128 | return $this; |
|
129 | } |
|
130 | ||
131 | /** |
|
132 | * Gets as providerManifestToken |
|
@@ 147-160 (lines=14) @@ | ||
144 | * @param string $providerManifestToken |
|
145 | * @return self |
|
146 | */ |
|
147 | public function setProviderManifestToken($providerManifestToken) |
|
148 | { |
|
149 | $msg = null; |
|
150 | if (!$this->isStringNotNullOrEmpty($providerManifestToken)) { |
|
151 | $msg = "Provider manifest token cannot be null or empty"; |
|
152 | throw new \InvalidArgumentException($msg); |
|
153 | } |
|
154 | if (!$this->isTSimpleIdentifierValid($providerManifestToken)) { |
|
155 | $msg = "Provider manifest token must be valid TSimpleIdentifier"; |
|
156 | throw new \InvalidArgumentException($msg); |
|
157 | } |
|
158 | $this->providerManifestToken = $providerManifestToken; |
|
159 | return $this; |
|
160 | } |
|
161 | ||
162 | public function isOK(&$msg = null) |
|
163 | { |