| @@ 157-174 (lines=18) @@ | ||
| 154 | return $this; |
|
| 155 | } |
|
| 156 | ||
| 157 | public function isOK(&$msg = null) |
|
| 158 | { |
|
| 159 | if (!$this->isStringNotNullOrEmpty($this->functionName)) { |
|
| 160 | $msg = 'Function name cannot be null or empty'; |
|
| 161 | return false; |
|
| 162 | } |
|
| 163 | if (null != $this->scalarProperty && !$this->scalarProperty->isOK($msg)) { |
|
| 164 | return false; |
|
| 165 | } |
|
| 166 | if (null != $this->complexProperty && !$this->complexProperty->isOK($msg)) { |
|
| 167 | return false; |
|
| 168 | } |
|
| 169 | if (null != $this->associationEnd && !$this->associationEnd->isOK($msg)) { |
|
| 170 | return false; |
|
| 171 | } |
|
| 172 | ||
| 173 | return true; |
|
| 174 | } |
|
| 175 | } |
|
| 176 | ||
| @@ 151-167 (lines=17) @@ | ||
| 148 | return $this; |
|
| 149 | } |
|
| 150 | ||
| 151 | public function isOK(&$msg = null) |
|
| 152 | { |
|
| 153 | if (!$this->isStringNotNullOrEmpty($this->storeEntitySet)) { |
|
| 154 | $msg = 'Name cannot be null or empty'; |
|
| 155 | return false; |
|
| 156 | } |
|
| 157 | if (null != $this->scalarProperty && !$this->scalarProperty->isOK($msg)) { |
|
| 158 | return false; |
|
| 159 | } |
|
| 160 | if (null != $this->complexProperty && !$this->complexProperty->isOK($msg)) { |
|
| 161 | return false; |
|
| 162 | } |
|
| 163 | if (null != $this->condition && !$this->condition->isOK($msg)) { |
|
| 164 | return false; |
|
| 165 | } |
|
| 166 | return true; |
|
| 167 | } |
|
| 168 | } |
|
| 169 | ||