| Total Complexity | 5 |
| Total Lines | 83 |
| Duplicated Lines | 0 % |
| Changes | 3 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 14 | #[ORM\Table(name: 'people_states')] |
||
| 15 | #[ORM\Index(name: 'people_id', columns: ['people_id'])] |
||
| 16 | #[ORM\UniqueConstraint(name: 'state', columns: ['state_id'])] |
||
| 17 | #[ORM\Entity] |
||
| 18 | |||
| 19 | class PeopleStates |
||
| 20 | { |
||
| 21 | /** |
||
| 22 | * @var integer |
||
| 23 | */ |
||
| 24 | #[ORM\Column(name: 'id', type: 'integer', nullable: false)] |
||
| 25 | #[ORM\Id] |
||
| 26 | #[ORM\GeneratedValue(strategy: 'IDENTITY')] |
||
| 27 | private $id; |
||
| 28 | |||
| 29 | /** |
||
| 30 | * @var People |
||
| 31 | */ |
||
| 32 | #[ORM\JoinColumn(name: 'people_id', referencedColumnName: 'id')] |
||
| 33 | #[ORM\ManyToOne(targetEntity: People::class)] |
||
| 34 | private $people; |
||
| 35 | |||
| 36 | /** |
||
| 37 | * @var State |
||
| 38 | */ |
||
| 39 | #[ORM\JoinColumn(name: 'state_id', referencedColumnName: 'id')] |
||
| 40 | #[ORM\ManyToOne(targetEntity: State::class)] |
||
| 41 | private $state; |
||
| 42 | |||
| 43 | /** |
||
| 44 | * Get id |
||
| 45 | * |
||
| 46 | * @return integer |
||
| 47 | */ |
||
| 48 | public function getId() |
||
| 49 | { |
||
| 50 | return $this->id; |
||
| 51 | } |
||
| 52 | |||
| 53 | /** |
||
| 54 | * Set state |
||
| 55 | * |
||
| 56 | * @param State $state |
||
| 57 | * @return PeopleStates |
||
| 58 | */ |
||
| 59 | public function setState(State $state = null) |
||
| 60 | { |
||
| 61 | $this->state = $state; |
||
| 62 | |||
| 63 | return $this; |
||
| 64 | } |
||
| 65 | |||
| 66 | /** |
||
| 67 | * Get state |
||
| 68 | * |
||
| 69 | * @return State |
||
| 70 | */ |
||
| 71 | public function getState() |
||
| 72 | { |
||
| 73 | return $this->state; |
||
| 74 | } |
||
| 75 | |||
| 76 | /** |
||
| 77 | * Set people |
||
| 78 | * |
||
| 79 | * @param People $people |
||
| 80 | * @return PeopleStates |
||
| 81 | */ |
||
| 82 | public function setPeople(People $people = null) |
||
| 83 | { |
||
| 84 | $this->people = $people; |
||
| 85 | |||
| 86 | return $this; |
||
| 87 | } |
||
| 88 | |||
| 89 | /** |
||
| 90 | * Get people |
||
| 91 | * |
||
| 92 | * @return People |
||
| 93 | */ |
||
| 94 | public function getPeople() |
||
| 97 | } |
||
| 98 | } |
||
| 99 |
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