Organization::setOrganization()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 1
dl 0
loc 5
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace App\Entity\Attribute\Accessor;
4
5
use App\Entity\Organization as OrganizationEntity;
6
7
/**
8
 * Trait Organization
9
 */
10
trait Organization
11
{
12
    /**
13
     * Set organization
14
     *
15
     * @param \App\Entity\Organization $organization
16
     * @return object
17
     */
18
    public function setOrganization(OrganizationEntity $organization = null)
19
    {
20
        $this->organization = $organization;
0 ignored issues
show
Bug Best Practice introduced by
The property organization does not exist. Although not strictly required by PHP, it is generally a best practice to declare properties explicitly.
Loading history...
21
22
        return $this;
23
    }
24
25
    /**
26
     * Get organization
27
     *
28
     * @return \App\Entity\Organization
29
     */
30
    public function getOrganization()
31
    {
32
        return $this->organization;
33
    }
34
}
35