Completed
Push — ezp25946-migrate_files_to_othe... ( 2e1d0b...9cddb9 )
by
unknown
14:43
created

BinaryFileMigrationHandler   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Importance

Changes 0
Metric Value
dl 0
loc 17
rs 10
c 0
b 0
f 0
wmc 3
lcom 1
cbo 2

3 Methods

Rating   Name   Duplication   Size   Complexity  
A countFiles() 0 4 1
A migrateFile() 0 4 1
A loadMetadataList() 0 4 1
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() //TODO move to parent?
17
    {
18
        return $this->fromMetadataHandler->count($this->scope);
19
    }
20
21
    public function loadMetadataList($limit = null, $offset = null) //TODO move to parent?
22
    {
23
        return $this->fromMetadataHandler->loadList($this->scope, $limit, $offset);
24
    }
25
26
    public function migrateFile(BinaryFile $binaryFile)
27
    {
28
        return true; //TODO
29
    }
30
}
31