Completed
Push — master ( 76b5db...d28136 )
by Julito
13:35
created

RepositoryFactory   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 5
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 2
c 1
b 0
f 0
dl 0
loc 5
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A createRepository() 0 3 1
1
<?php
2
/* For licensing terms, see /license.txt */
3
4
namespace Chamilo\CoreBundle\Repository;
5
6
class RepositoryFactory
7
{
8
    public static function createRepository($class)
9
    {
10
        return new $class();
11
    }
12
}
13