| @@ 78-82 (lines=5) @@ | ||
| 75 | public function tokenize() : array |
|
| 76 | { |
|
| 77 | if ($this->isRecordClass()) { |
|
| 78 | if (!empty($this->previousName)) { |
|
| 79 | $this->tokens['NAME'] = $this->previousName; |
|
| 80 | } else { |
|
| 81 | throw new SyntaxErrorException($this->stream); |
|
| 82 | } |
|
| 83 | ||
| 84 | if (!empty($this->globalTtl)) { |
|
| 85 | $this->tokens['TTL'] = $this->globalTtl; |
|
| @@ 84-88 (lines=5) @@ | ||
| 81 | throw new SyntaxErrorException($this->stream); |
|
| 82 | } |
|
| 83 | ||
| 84 | if (!empty($this->globalTtl)) { |
|
| 85 | $this->tokens['TTL'] = $this->globalTtl; |
|
| 86 | } else { |
|
| 87 | throw new SyntaxErrorException($this->stream); |
|
| 88 | } |
|
| 89 | goto in; |
|
| 90 | } |
|
| 91 | ||