Advertisement
Guest User

Untitled

a guest
Jun 15th, 2019
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. <?php
  2. class token{
  3. public $tiempo_caducidad;
  4.  
  5. public static function tiempo_caducidad($tiempo_caducidad){
  6. $this->tiempo_caducidad = $tiempo_caducidad;
  7. }
  8. }
  9. ?>
  10.  
  11. <?php
  12. require(token.php);
  13.  
  14. class registrar_persona{
  15. function principal(){
  16. token::tiempo_caducidad(60*60);
  17. }
  18. }
  19. $clase_registrar_persona = new registrar_persona();
  20. $clase_registrar_persona->principal();
  21. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement