| 1234567891011121314151617181920212223242526272829 |
- <?php
- namespace phpnotify;
- /**
- * That class represents guest mode without any authorization.
- *
- * That could be use, when any authorization is not required. It is not
- * recommended, because it is not safe. It would be use only in local
- * enviroment, which is not available from internet.
- */
- class empty_authorization extends authorization_method {
- /**
- * It create new empty authorization.
- *
- * It generate new empty authorization, which don't require any
- * parameters.
- */
- public function __construct() {}
- /**
- * It return false, because authorization is not required.
- *
- * @return bool It return that header is required.
- */
- public function is_header_required(): bool {
- return false;
- }
- }
|