code: private function getConstantsByName($name)
      {
          $reflection = new ReflectionClass(__CLASS__);
  
          $constants = $reflection->getConstants();
  
          $result = [];
  
          foreach ($constants as $key => $constant) {
              if (false !== stripos($key, $name)) {
                  $result[$key] = $constant;
              }
          }
  
          return $result;
      }
docs: @param string $name
  
  @return array