Completed
Branch feature/pre-split (9d6b17)
by Anton
03:28
created

BelongsToRelation   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A withData() 0 6 1
A getRelated() 0 4 1
1
<?php
2
/**
3
 * components
4
 *
5
 * @author    Wolfy-J
6
 */
7
namespace Spiral\ORM\Entities\Relations;
8
9
use Spiral\ORM\RelationInterface;
10
11
class BelongsToRelation implements RelationInterface
12
{
13
    public function withData($data)
14
    {
15
        dump($data);
16
17
        return $this;
18
    }
19
20
    public function getRelated()
21
    {
22
        return 'author';
23
    }
24
}