| Conditions | 7 | 
| Paths | 9 | 
| Total Lines | 10 | 
| Code Lines | 6 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 1 | ||
| Bugs | 0 | Features | 0 | 
| 1 | <?php | ||
| 26 | public function getFlags(): ?int | ||
| 27 |     { | ||
| 28 |         if (!$this->beforeInsert && !$this->onInsert && !$this->beforeUpdate) { | ||
| 29 | return null; | ||
| 30 | } | ||
| 31 | |||
| 32 | return | ||
| 33 | ($this->beforeInsert ? GeneratedField::BEFORE_INSERT : 0) | | ||
| 34 | ($this->onInsert ? GeneratedField::ON_INSERT : 0) | | ||
| 35 | ($this->beforeUpdate ? GeneratedField::BEFORE_UPDATE : 0); | ||
| 36 | } | ||
| 38 |