RepositoryBuilder   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A for() 0 6 1
1
<?php
2
3
namespace ByTIC\Models\SmartProperties\Definitions\Builders;
4
5
use ByTIC\Models\SmartProperties\Definitions\RepositoryDefinitions;
6
7
/**
8
 * Class RepositoryBuilder
9
 * @package ByTIC\Models\SmartProperties\Definitions\Builders
10
 */
11
class RepositoryBuilder
12
{
13
14
    public static function for($manager, \Closure $builder): RepositoryDefinitions
15
    {
16
        $collection = new RepositoryDefinitions();
17
        $collection->setRepositoryName($manager);
18
        $collection->setBuilder($builder);
19
        return $collection;
20
    }
21
}