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

BelongsToRelation::getRelated()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 0
dl 0
loc 4
rs 10
c 0
b 0
f 0
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
}