1 | <?php |
||
6 | class TikaRestClient extends Client |
||
|
|||
7 | { |
||
8 | /** |
||
9 | * Detect if the service is available |
||
10 | * |
||
11 | * @return bool |
||
12 | */ |
||
13 | public function isAvailable() |
||
23 | |||
24 | /** |
||
25 | * Get version code |
||
26 | * |
||
27 | * @return float |
||
28 | */ |
||
29 | public function getVersion() |
||
41 | |||
42 | protected $mimes = array(); |
||
43 | |||
44 | /** |
||
45 | * Gets supported mime data. May include aliased mime types. |
||
46 | * |
||
47 | * @return array |
||
48 | */ |
||
49 | public function getSupportedMimes() |
||
62 | |||
63 | /** |
||
64 | * Extract text content from a given file. |
||
65 | * Logs a notice-level error if the document can't be parsed. |
||
66 | * |
||
67 | * @param string $file Full filesystem path to a file to post |
||
68 | * @return string Content of the file extracted as plain text |
||
69 | */ |
||
70 | public function tika($file) |
||
99 | } |
||
100 |
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.