Completed
Push — master ( 6cc2de...ecdd96 )
by Adrien
02:40
created

NoTypeCollection::getFoos()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 3
rs 10
c 0
b 0
f 0
cc 1
eloc 1
nc 1
nop 0
1
<?php
2
3
declare(strict_types=1);
4
5
namespace GraphQLTests\Doctrine\Blog\Model\Special;
6
7
use Doctrine\Common\Collections\Collection;
8
use Doctrine\ORM\Mapping as ORM;
9
use GraphQLTests\Doctrine\Blog\Model\AbstractModel;
10
11
/**
12
 * @ORM\Entity
13
 */
14
class NoTypeCollection extends AbstractModel
15
{
16
    public function getFoos(): Collection
17
    {
18
        return __FUNCTION__;
0 ignored issues
show
Bug Best Practice introduced by
The expression return __FUNCTION__ returns the type string which is incompatible with the type-hinted return Doctrine\Common\Collections\Collection.
Loading history...
19
    }
20
}
21