empty_authorization.php 769 B

1234567891011121314151617181920212223242526272829
  1. <?php
  2. namespace phpnotify;
  3. /**
  4. * That class represents guest mode without any authorization.
  5. *
  6. * That could be use, when any authorization is not required. It is not
  7. * recommended, because it is not safe. It would be use only in local
  8. * enviroment, which is not available from internet.
  9. */
  10. class empty_authorization extends authorization_method {
  11. /**
  12. * It create new empty authorization.
  13. *
  14. * It generate new empty authorization, which don't require any
  15. * parameters.
  16. */
  17. public function __construct() {}
  18. /**
  19. * It return false, because authorization is not required.
  20. *
  21. * @return bool It return that header is required.
  22. */
  23. public function is_header_required(): bool {
  24. return false;
  25. }
  26. }