| Total Complexity | 9 |
| Total Lines | 75 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 8 | final class PropalStatus |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * @var int |
||
| 12 | */ |
||
| 13 | private $value; |
||
| 14 | |||
| 15 | private function __construct($status = 0) |
||
| 16 | { |
||
| 17 | $this->value = $status; |
||
| 18 | } |
||
| 19 | |||
| 20 | /** |
||
| 21 | * @return PropalStatus |
||
| 22 | */ |
||
| 23 | public static function draft() |
||
| 26 | } |
||
| 27 | |||
| 28 | /** |
||
| 29 | * @return PropalStatus |
||
| 30 | */ |
||
| 31 | public static function validated() |
||
| 32 | { |
||
| 33 | return new self(1); |
||
| 34 | } |
||
| 35 | |||
| 36 | /** |
||
| 37 | * @return PropalStatus |
||
| 38 | */ |
||
| 39 | public static function signed() |
||
| 40 | { |
||
| 41 | return new self(2); |
||
| 42 | } |
||
| 43 | |||
| 44 | /** |
||
| 45 | * @return PropalStatus |
||
| 46 | */ |
||
| 47 | public static function refused() |
||
| 48 | { |
||
| 49 | return new self(3); |
||
| 50 | } |
||
| 51 | |||
| 52 | /** |
||
| 53 | * @return PropalStatus |
||
| 54 | */ |
||
| 55 | public static function billed() |
||
| 58 | } |
||
| 59 | |||
| 60 | /** |
||
| 61 | * @return int |
||
| 62 | */ |
||
| 63 | public function getValue() |
||
| 64 | { |
||
| 65 | return $this->value; |
||
| 66 | } |
||
| 67 | |||
| 68 | public static function fromInteger($value) |
||
| 74 | } |
||
| 75 | /** |
||
| 76 | * @param PropalStatus $status |
||
| 77 | * |
||
| 78 | * @return bool |
||
| 79 | */ |
||
| 80 | public function equals(PropalStatus $status) |
||
| 83 | } |
||
| 84 | } |
||
| 85 |