Completed
Push — dev ( 854686...1d55ed )
by Андрей
04:48
created

setObjectManagerName()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 6
rs 9.4285
cc 1
eloc 3
nc 1
nop 1
1
<?php
2
/**
3
 * @link    https://github.com/nnx-framework/doctrine-fixture-module
4
 * @author  Malofeykin Andrey  <[email protected]>
5
 */
6
namespace Nnx\DoctrineFixtureModule\FixtureInitializer;
7
8
/**
9
 * Class ObjectManagerNameAwareTrait
10
 *
11
 * @package Nnx\DoctrineFixtureModule\FixtureInitializer
12
 */
13
trait ObjectManagerNameAwareTrait
14
{
15
    /**
16
     * Имя используемого ObjectManager'a
17
     *
18
     * @var string
19
     */
20
    protected $objectManagerName;
21
22
    /**
23
     * Возвращает имя используемого ObjectManager'a
24
     *
25
     * @return string
26
     */
27
    public function getObjectManagerName()
28
    {
29
        return $this->objectManagerName;
30
    }
31
32
    /**
33
     * Устанавливает имя используемого ObjectManager'a
34
     *
35
     * @param string $objectManagerName
36
     *
37
     * @return $this
38
     */
39
    public function setObjectManagerName($objectManagerName)
40
    {
41
        $this->objectManagerName = $objectManagerName;
42
43
        return $this;
44
    }
45
}
46