| Conditions | 6 |
| Paths | 2 |
| Total Lines | 16 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 142 | public function isValid(): bool |
||
| 143 | { |
||
| 144 | if ( |
||
| 145 | null !== $this->id && |
||
| 146 | null !== $this->author && |
||
| 147 | $this->author->isValid() && |
||
| 148 | null !== $this->text && |
||
| 149 | null !== $this->created// && |
||
| 150 | // @todo check type existence in incoming data |
||
| 151 | //null !== $this->type |
||
| 152 | ) { |
||
| 153 | return true; |
||
| 154 | } |
||
| 155 | |||
| 156 | return false; |
||
| 157 | } |
||
| 158 | } |