| @@ 78-81 (lines=4) @@ | ||
| 75 | if (empty($this->type)) { |
|
| 76 | throw new LPTrackerSDKException('Detail type can not be null: '.$this->__toString()); |
|
| 77 | } |
|
| 78 | if ( ! in_array($this->type, self::getAllTypes())) { |
|
| 79 | throw new LPTrackerSDKException('Detail type not in ('.implode(',', |
|
| 80 | self::getAllTypes()).'): '.$this->__toString()); |
|
| 81 | } |
|
| 82 | if (empty($this->data)) { |
|
| 83 | throw new LPTrackerSDKException('Detail data can not be null: '.$this->__toString()); |
|
| 84 | } |
|
| @@ 84-87 (lines=4) @@ | ||
| 81 | if (empty($this->type)) { |
|
| 82 | throw new LPTrackerSDKException('Detail type can not be null: '.$this->__toString()); |
|
| 83 | } |
|
| 84 | if ( ! in_array($this->type, self::getAllTypes())) { |
|
| 85 | throw new LPTrackerSDKException('Detail type not in ('.implode(',', |
|
| 86 | self::getAllTypes()).'): '.$this->__toString()); |
|
| 87 | } |
|
| 88 | ||
| 89 | return true; |
|
| 90 | } |
|