Completed
Push — ezp25946-migrate_files_to_othe... ( d05e09...2e1d0b )
by
unknown
13:37
created

BinaryFileMigrationHandler::loadFiles()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 0
dl 0
loc 4
rs 10
c 0
b 0
f 0
1
<?php
2
3
/**
4
 * File containing the BinaryFileMigrationHandler class.
5
 *
6
 * @copyright Copyright (C) eZ Systems AS. All rights reserved.
7
 * @license For full copyright and license information view LICENSE file distributed with this source code.
8
 */
9
namespace eZ\Bundle\EzPublishIOBundle\Migration\MigrationHandler;
10
11
use eZ\Bundle\EzPublishIOBundle\Migration\MigrationHandler;
12
use eZ\Publish\SPI\IO\BinaryFile;
13
14
class BinaryFileMigrationHandler extends MigrationHandler
15
{
16
    public function countFiles()
17
    {
18
        return $this->fromMetadataHandler->count('binaryfile');
19
    }
20
21
    public function loadFiles()
22
    {
23
        return $this->fromMetadataHandler->loadAll('binaryfile');
24
    }
25
26
    public function migrateFile(BinaryFile $binaryFile)
27
    {
28
        return true; //TODO
29
    }
30
}
31