Conditions | 4 |
Paths | 4 |
Total Lines | 15 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
46 | public function isOK(&$msg = null) |
||
47 | { |
||
48 | if (!$this->isStringNotNullOrEmpty($this->name)) { |
||
49 | $msg = 'Name cannot be null or empty'; |
||
50 | return false; |
||
51 | } |
||
52 | if (!$this->isTSimpleIdentifierValid($this->name)) { |
||
53 | $msg = 'Name must be a valid TSimpleIdentifier'; |
||
54 | return false; |
||
55 | } |
||
56 | if (!$this->isModificationFunctionMappingAssociationOK($msg)) { |
||
57 | return false; |
||
58 | } |
||
59 | return true; |
||
60 | } |
||
61 | } |
||
62 |