In PHP 7.0.1, I was able to define this:
public static $kIdsByActions = array( MyClass1::kAction => 0, MyClass2::kAction => 1);
And then use it like this:
MyClass::$kIdsByActions[$this->mAction];
In PHP 7.0.1, I was able to define this:
public static $kIdsByActions = array( MyClass1::kAction => 0, MyClass2::kAction => 1);
And then use it like this:
MyClass::$kIdsByActions[$this->mAction];