sample.php 398 B

12345678910111213141516171819202122232425
  1. <?php
  2. class UserService {
  3. private $name;
  4. private $email;
  5. public function __construct($name, $email) {
  6. $this->name = $name;
  7. $this->email = $email;
  8. }
  9. public function login($user, $pass) {
  10. return true;
  11. }
  12. public static function helper() {
  13. return "helper";
  14. }
  15. }
  16. interface Runnable {
  17. public function run();
  18. }
  19. const MAX_RETRIES = 3;