TradeAsset   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 28
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
eloc 10
dl 0
loc 28
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __toString() 0 2 1
1
<?php
2
namespace PhpDraft\Domain\Entities;
3
4
class TradeAsset {
5
  public function __toString() {
6
    return (string)$this->player->player_id;
7
  }
8
9
  /** @var int */
10
  public $trade_asset_id;
11
12
  /** @var int */
13
  public $trade_id;
14
15
  /** @var int */
16
  public $oldmanager_id;
17
18
  /** @var int */
19
  public $newmanager_id;
20
21
  /** @var Player */
0 ignored issues
show
Bug introduced by
The type PhpDraft\Domain\Entities\Player 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...
22
  public $player;
23
24
  /** @var Manager */
25
  public $oldmanager;
26
27
  /** @var Manager */
28
  public $newmanager;
29
30
  /** @var bool */
31
  public $was_drafted;
32
}