MappedSuperClassMapper::isTransient()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 2
Bugs 0 Features 0
Metric Value
c 2
b 0
f 0
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
cc 1
eloc 2
nc 1
nop 0
crap 1
1
<?php
2
3
namespace LaravelDoctrine\Fluent\Mappers;
4
5
use Doctrine\ORM\Mapping\Builder\ClassMetadataBuilder;
6
7
final class MappedSuperClassMapper extends AbstractMapper
8
{
9
    /**
10
     * @param ClassMetadataBuilder $metadata
11
     */
12 3
    public function setType(ClassMetadataBuilder $metadata)
13
    {
14 3
        $metadata->setMappedSuperClass();
15 3
    }
16
17
    /**
18
     * Returns whether the class with the specified name should have its metadata loaded.
19
     * This is only the case if it is either mapped as an Entity or a MappedSuperclass.
20
     *
21
     * @return bool
22
     */
23 2
    public function isTransient()
24
    {
25 2
        return false;
26
    }
27
}
28