carno-php /
tracing
| 1 | <?php |
||
| 2 | /** |
||
| 3 | * Endpoint for local/remote |
||
| 4 | * User: moyo |
||
| 5 | * Date: 24/11/2017 |
||
| 6 | * Time: 3:51 PM |
||
| 7 | */ |
||
| 8 | |||
| 9 | namespace Carno\Tracing\Standard; |
||
| 10 | |||
| 11 | use Carno\Net\Address; |
||
|
0 ignored issues
–
show
|
|||
| 12 | |||
| 13 | class Endpoint |
||
| 14 | { |
||
| 15 | /** |
||
| 16 | * @var string |
||
| 17 | */ |
||
| 18 | private $service = null; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * @var Address |
||
| 22 | */ |
||
| 23 | private $address = null; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * Endpoint constructor. |
||
| 27 | * @param string $service |
||
| 28 | * @param Address $address |
||
| 29 | */ |
||
| 30 | public function __construct(string $service, Address $address = null) |
||
| 31 | { |
||
| 32 | $this->service = $service; |
||
| 33 | $this->address = $address ?? new Address(0); |
||
| 34 | } |
||
| 35 | |||
| 36 | /** |
||
| 37 | * @return string |
||
| 38 | */ |
||
| 39 | public function service() : string |
||
| 40 | { |
||
| 41 | return $this->service; |
||
| 42 | } |
||
| 43 | |||
| 44 | /** |
||
| 45 | * @return string |
||
| 46 | */ |
||
| 47 | public function ipv4() : string |
||
| 48 | { |
||
| 49 | return $this->address->host(); |
||
| 50 | } |
||
| 51 | |||
| 52 | /** |
||
| 53 | * @return int |
||
| 54 | */ |
||
| 55 | public function port() : int |
||
| 56 | { |
||
| 57 | return $this->address->port(); |
||
| 58 | } |
||
| 59 | } |
||
| 60 |
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:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths