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

AssociationPath   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A addAssociation() 0 5 1
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