Completed
Branch feature/pre-split (af0512)
by Anton
03:32
created

RelationBucket::extractRelations()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 10
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 1
dl 0
loc 10
rs 9.4285
c 0
b 0
f 0
1
<?php
2
/**
3
 * components
4
 *
5
 * @author    Wolfy-J
6
 */
7
namespace Spiral\ORM\Entities;
8
9
class RelationBucket
10
{
11
12
    /**
13
     * Extract relations data from given entity fields.
14
     *
15
     * @param array $data
16
     */
17
    public function extractRelations(array &$data)
0 ignored issues
show
Unused Code introduced by
The parameter $data is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
18
    {
19
//        //Fetch all relations
20
//        $relations = array_intersect_key($data, $this->recordSchema[self::SH_RELATIONS]);
21
//
22
//        foreach ($relations as $name => $relation) {
23
//            $this->relations[$name] = $relation;
24
//            unset($data[$name]);
25
//        }
26
    }
27
}