for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of the BenGorFile package.
*
* (c) Beñat Espiña <[email protected]>
* (c) Gorka Laucirica <[email protected]>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace BenGorFile\DoctrineORMBridge\Infrastructure\Persistence;
use BenGorFile\File\Domain\Model\FileName;
use BenGorFile\File\Domain\Model\FileSpecificationFactory;
/**
* @author Beñat Espiña <[email protected]>
class DoctrineORMFileSpecificationFactory implements FileSpecificationFactory
{
public function buildFilterByNameSpecification($fileName, $offset = 0, $limit = -1)
return new DoctrineORMFilterByNameSpecification($fileName, $offset, $limit);
}
public function buildListOfIdsSpecification(array $ids, $offset = 0, $limit = -1)
return new DoctrineORMListOfIdsSpecification($ids);
public function buildByNameSpecification(FileName $fileName)
return new DoctrineORMByNameSpecification($fileName);