Mapping
last analyzed

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Importance

Changes 3
Bugs 0 Features 0
Metric Value
c 3
b 0
f 0
dl 0
loc 23

3 Methods

Rating   Name   Duplication   Size   Complexity  
mapFor() 0 1 ?
map() 0 1 ?
addMapperTo() 0 1 ?
1
<?php
2
3
namespace LaravelDoctrine\Fluent;
4
5
use LaravelDoctrine\Fluent\Mappers\MapperSet;
6
7
interface Mapping
8
{
9
    /**
10
     * Returns the fully qualified name of the class that this mapper maps.
11
     *
12
     * @return string
13
     */
14
    public function mapFor();
15
16
    /**
17
     * Load the object's metadata through the Metadata Builder object.
18
     *
19
     * @param Fluent $builder
20
     */
21
    public function map(Fluent $builder);
22
23
    /**
24
     * Create the corresponding mapper and add it to the current mapper set.
25
     *
26
     * @param MapperSet $mappers
27
     */
28
    public function addMapperTo(MapperSet $mappers);
29
}
30