Lines
100.00%
1 / 1
Functions and Methods
100.00%
1 / 1
Classes and Traits
100.00%
1 / 1
| Name | Lines | Functions and Methods | CRAP | Classes and Traits | ||||||
|---|---|---|---|---|---|---|---|---|---|---|
| FileOutcome | 100.00% | 1 / 1 | 100.00% | 1 / 1 | 1 | 100.00% | 1 / 1 | |||
| isChange | 100.00% | 1 / 1 | 100.00% | 1 / 1 | 1 | |||||
| 1 | <?php | |
| 2 | ||
| 3 | declare(strict_types=1); | |
| 4 | ||
| 5 | namespace Stewart\Codegen\Output; | |
| 6 | ||
| 7 | enum FileOutcome: string | |
| 8 | { | |
| 9 | case Created = 'created'; | |
| 10 | case Updated = 'updated'; | |
| 11 | case Unchanged = 'unchanged'; | |
| 12 | case Deleted = 'deleted'; | |
| 13 | ||
| 14 | public function isChange(): bool | |
| 15 | { | |
| 16 | return $this !== self::Unchanged; | |
| 17 | } | |
| 18 | } |