HasOne   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Importance

Changes 0
Metric Value
wmc 2
lcom 1
cbo 1
dl 0
loc 12
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A build() 0 4 1
A createRelated() 0 4 1
1
<?php namespace AdamWathan\Faktory\Relationship;
2
3
class HasOne extends DependentRelationship
4
{
5
    public function build()
6
    {
7
        return $this->factory->build($this->attributes);
8
    }
9
10
    protected function createRelated()
11
    {
12
        return $this->factory->create($this->attributes);
13
    }
14
}
15