fork download
  1. <?php
  2.  
  3. class Constantes
  4. {
  5. const DIRETOR = 1;
  6. const GERENTE = 2;
  7.  
  8. public static function DiretorConst()
  9. {
  10. return self::DIRETOR;
  11. }
  12.  
  13. public static function GerenteConst()
  14. {
  15. return self::GERENTE;
  16. }
  17. }
  18.  
  19. echo Constantes::DiretorConst() . "\n";
  20. echo Constantes::GerenteConst() . "\n";
Success #stdin #stdout 0.02s 24448KB
stdin
Standard input is empty
stdout
1
2