AvatarFactory::factory()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 6
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 3
nc 1
nop 1
1
<?php
2
3
namespace Dwr\AvatarBundle\Model;
4
5
class AvatarFactory extends Generator
6
{
7
    /**
8
     * @var Avatar
9
     */
10
    private $avatar;
11
    
12
    /**
13
     * @param Avatar $avatar
14
     * @return Avatar
15
     */
16
    protected function factory(Avatar $avatar)
17
    {
18
        $this->avatar = $avatar;
19
        
20
        return $this->avatar->getAvatar();
21
    }
22
23
}
24