code: public static function forName($name)
      {
          $enum = new \ReflectionClass(get_called_class());
          try {
              return $enum->getStaticPropertyValue($name);
          } catch (\ReflectionException $re) {
              throw new \InvalidArgumentException($re->getMessage());
          }
      }
docs: returns the enum instance of given class identified by its name
  
  @api
  @param   string  $name
  @return  \stubbles\lang\Enum
  @throws  \InvalidArgumentException