Filesystem::importAllTranslations()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 3
ccs 0
cts 2
cp 0
rs 10
c 0
b 0
f 0
cc 1
eloc 1
nc 1
nop 0
crap 2
1
<?php
2
3
namespace Happyr\TranslationBundle\Service;
4
5
use Happyr\TranslationBundle\Model\Message;
6
use Happyr\TranslationBundle\Translation\FilesystemUpdater;
7
8
class Filesystem implements TranslationServiceInterface
9
{
10
    /**
11
     * @var FilesystemUpdater filesystemService
12
     */
13
    private $filesystemService;
14
15
    /**
16
     *
17
     * @param FilesystemUpdater $filesystemService
18
     */
19 1
    public function __construct(FilesystemUpdater $filesystemService)
20
    {
21 1
        $this->filesystemService = $filesystemService;
22 1
    }
23
24
    /**
25
     * @inheritDoc
26
     */
27
    public function fetchTranslation(Message $message, $updateFs = false)
28
    {
29
        if ($updateFs) {
30
            $this->filesystemService->updateMessageCatalog([$message]);
31
        }
32
    }
33
34
    /**
35
     * @inheritDoc
36
     */
37
    public function updateTranslation(Message $message)
38
    {
39
        $this->filesystemService->updateMessageCatalog([$message]);
40
    }
41
42
    /**
43
     * @inheritDoc
44
     */
45
    public function flagTranslation(Message $message, $type = 0)
46
    {
47
    }
48
49
    /**
50
     * @inheritDoc
51
     */
52
    public function createAsset(Message $message)
53
    {
54
    }
55
56
    /**
57
     * @inheritDoc
58
     */
59
    public function downloadAllTranslations()
60
    {
61
    }
62
63
    /**
64
     * @inheritDoc
65
     */
66
    public function importAllTranslations()
67
    {
68
    }
69
70
    /**
71
     * @inheritDoc
72
     */
73
    public function synchronizeAllTranslations()
74
    {
75
    }
76
77
    /**
78
     * @inheritDoc
79
     */
80
    public function uploadAllTranslations()
81
    {
82
    }
83
}
84