Skip to content

Instantly share code, notes, and snippets.

@dancr13
Created June 6, 2019 17:14
Show Gist options
  • Save dancr13/fae73f242b24c8feb0c7fd8c461e3f9b to your computer and use it in GitHub Desktop.
Save dancr13/fae73f242b24c8feb0c7fd8c461e3f9b to your computer and use it in GitHub Desktop.
Emum solution for PHP
abstract class OpServicesTypes {
const NEWT = 'new';
const RENEW = 'renew';
const REPLACE = 'replace';
const CHANGEADDRESS = 'change-of-address';
const CHANGEOFNAME = 'change-of-name';
}
example: OpServicesTypes::NEWT
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment