Issues (22)

src/Contracts/Transport.php (1 issue)

Labels
Severity
1
<?php
2
/**
3
 * Transporter API
4
 * User: moyo
5
 * Date: 24/11/2017
6
 * Time: 11:23 AM
7
 */
8
9
namespace Carno\Tracing\Contracts;
10
11
use Carno\Net\Address;
0 ignored issues
show
The type Carno\Net\Address was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
12
use Carno\Promise\Promised;
13
14
interface Transport
15
{
16
    /**
17
     * @param Address $endpoint
18
     * @param string $identify
19
     */
20
    public function connect(Address $endpoint, string $identify = null) : void;
21
22
    /**
23
     * @return Promised
24
     */
25
    public function disconnect() : Promised;
26
27
    /**
28
     * maybe just to buffer
29
     * @param string $data
30
     */
31
    public function loading(string $data) : void;
32
33
    /**
34
     * must flush to collector
35
     */
36
    public function flushing() : void;
37
}
38