AlicePHPCRContext   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 41
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 3

Importance

Changes 0
Metric Value
wmc 4
lcom 0
cbo 3
dl 0
loc 41
rs 10
c 0
b 0
f 0

4 Methods

Rating   Name   Duplication   Size   Complexity  
A setKernel() 0 11 1
A createSchema() 0 4 1
A dropSchema() 0 4 1
A emptyDatabase() 0 4 1
1
<?php
2
3
/*
4
 * This file is part of the Fidry\AliceBundleExtension package.
5
 *
6
 * (c) Théo FIDRY <[email protected]>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace Fidry\AliceBundleExtension\Context\Doctrine;
13
14
use Symfony\Component\HttpKernel\KernelInterface;
15
16
/**
17
 * Context to load fixtures files with Alice loader.
18
 *
19
 * @author Théo FIDRY <[email protected]>
20
 */
21
class AlicePHPCRContext extends AbstractAliceContext
22
{
23
    /**
24
     * {@inheritdoc}
25
     */
26
    public function setKernel(KernelInterface $kernel)
27
    {
28
        $this->init(
29
            $kernel,
30
            $kernel->getContainer()->get('hautelook_alice.doctrine.phpcr.fixtures_finder'),
31
            $kernel->getContainer()->get('hautelook_alice.fixtures.loader'),
32
            $this->resolvePersister($kernel->getContainer()->get('doctrine.phpcr.entity_manager'))
33
        );
34
35
        return $this;
36
    }
37
38
    /**
39
     * {@inheritdoc}
40
     */
41
    public function createSchema()
42
    {
43
        // TODO: Implement createDatabase() method.
44
    }
45
46
    /**
47
     * {@inheritdoc}
48
     */
49
    public function dropSchema()
50
    {
51
        // TODO: Implement dropDatabase() method.
52
    }
53
54
    /**
55
     * {@inheritdoc}
56
     */
57
    public function emptyDatabase()
58
    {
59
        // TODO: Implement emptyDatabase() method.
60
    }
61
}
62