| Conditions | 3 |
| Paths | 3 |
| Total Lines | 13 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 37 | public function isTTypeAttributesValid(&$msg = null) |
||
| 38 | { |
||
| 39 | if (null == $this->name) { |
||
| 40 | $msg = "Name cannot be null"; |
||
| 41 | return false; |
||
| 42 | } |
||
| 43 | if (!$this->isTSimpleIdentifierValid($this->name)) { |
||
| 44 | $msg = "Name must be a valid TSimpleIdentifier"; |
||
| 45 | return false; |
||
| 46 | } |
||
| 47 | |||
| 48 | return true; |
||
| 49 | } |
||
| 50 | } |
||
| 51 |