Subversion Repositories ALCASAR

Rev

Details | Last modification | View Log

Rev Author Line No. Line
3241 rexy 1
<?php
2
 
3
namespace mbolli\nfsen_ng\processor;
4
 
5
/**
6
 * Provides access to netflow data using a model
7
 * compatible with nfdump commandline options.
8
 */
9
interface Processor {
10
    /**
11
     * Sets an option's value.
12
     *
13
     * @param string|array|int|null $value
14
     */
15
    public function setOption(string $option, $value): void;
16
 
17
    /**
18
     * Sets a filter's value.
19
     */
20
    public function setFilter(string $filter): void;
21
 
22
    /**
23
     * Executes the processor command, tries to throw an
24
     * exception based on the return code.
25
     *
26
     * @throws \Exception
27
     */
28
    public function execute(): array;
29
}