Ubiquity  2.0.3
php rapid development framework
GitFileStatus.php
Go to the documentation of this file.
1 <?php
2 
3 namespace Ubiquity\utils\git;
4 
5 class GitFileStatus {
6  public static $UNTRACKED="untracked";
7  public static $MODIFIED="modified";
8  public static $DELETED="deleted";
9  public static $NONE="";
10  public static function getIcon($status){
11  $icon="";
12  switch ($status){
13  case self::$UNTRACKED:
14  $icon="blue question";
15  break;
16  case self::$MODIFIED:
17  $icon="green edit";
18  break;
19  case self::$DELETED:
20  $icon="red remove";
21  break;
22  default:
23  $icon="red question";
24  break;
25  }
26  return $icon;
27  }
28 }
29