Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
50.00% covered (danger)
50.00%
1 / 2
50.00% covered (danger)
50.00%
1 / 2
CRAP
0.00% covered (danger)
0.00%
0 / 1
HasRelationEmbedded
50.00% covered (danger)
50.00%
1 / 2
50.00% covered (danger)
50.00%
1 / 2
2.50
0.00% covered (danger)
0.00%
0 / 1
 hasEmbeddedRelation
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 followField
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
1<?php
2namespace Apie\Serializer\Relations;
3
4final class HasRelationEmbedded implements EmbedRelationInterface
5{
6    public function hasEmbeddedRelation(): bool
7    {
8        return true;
9    }
10    public function followField(string $fieldName): EmbedRelationInterface
11    {
12        return new NoRelationEmbedded();
13    }
14}