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

BinaryFileMigrationHandler::loadMetadataList()   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 2
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() //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