src/Enum.php
public function getName(){
		
		foreach(static::getConstants() as $name => $value){
			if($this->_Value === $value){
				return $name;
			}
		}
		
		return null;
		
	}
public function getName(){
		
		foreach(static::getConstants() as $name => $value){
			if($this->_Value === $value){
				return $name;
			}
		}
		
		return null;
		
	}
public function getName ( ) { foreach ( static :: getConstants ( ) as $ name => $ value ) { if ( $ this -> _Value === $ value ) { return $ name ; } } return null ; }
Returns the name of the constant which matches the enum value
@return string
Returns the name of the constant which matches the enum value