Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
n/a
0 / 0
n/a
0 / 0
CRAP
n/a
0 / 0
1<?php
2/**
3*
4* This file is part of the phpBB Forum Software package.
5*
6* @copyright (c) phpBB Limited <https://www.phpbb.com>
7* @license GNU General Public License, version 2 (GPL-2.0)
8*
9* For full copyright and license information, please see
10* the docs/CREDITS.txt file.
11*
12*/
13
14namespace phpbb\mimetype;
15
16interface guesser_interface
17{
18    /**
19    * Returns whether this guesser is supported on the current OS
20    *
21    * @return bool True if guesser is supported, false if not
22    */
23    public function is_supported();
24
25    /**
26    * Guess mimetype of supplied file
27    *
28    * @param string $file Path to file
29    * @param string $file_name The real file name
30    *
31    * @return string|null Guess for mimetype of file
32    */
33    public function guess($file, $file_name = '');
34
35    /**
36    * Get the guesser priority
37    *
38    * @return int Guesser priority
39    */
40    public function get_priority();
41
42    /**
43    * Set the guesser priority
44    *
45    * @param int $priority Guesser priority
46    *
47    * @return void
48    */
49    public function set_priority($priority);
50}