RepositoryBuilder::for()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 5
c 1
b 0
f 0
dl 0
loc 6
rs 10
cc 1
nc 1
nop 2
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
}