Passed
Pull Request — master (#9)
by Mariusz
02:39
created

AssociationPath::addAssociation()   A

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 9.4285
c 0
b 0
f 0
1
<?php
2
3
namespace Xsolve\Associate\DoctrineOrm\Association\Path;
4
5
class AssociationPath
6
{
7
    /**
8
     * @var array
9
     */
10
    protected $associations = [];
11
12
    /**
13
     * @param Association $association
14
     *
15
     * @return self
16
     */
17
    public function addAssociation(Association $association): self
18
    {
19
        $this->associations[] = $association;
20
21
        return $this;
22
    }
23
}
24