AvatarFactory   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Importance

Changes 0
Metric Value
wmc 1
lcom 1
cbo 2
dl 0
loc 19
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A factory() 0 6 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