for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php declare(strict_types=1);
namespace NamespaceProtector\Result\Factory;
use NamespaceProtector\Result\ErrorResult;
use NamespaceProtector\Result\ResultCollected;
use NamespaceProtector\Result\ResultCollectedInterface;
final class CollectedFactory extends AbstractCollectionFactory
{
/**
* @return ResultCollected<ErrorResult>
*/
public function createForErrorResult(): ResultCollected //todo: move to another factory
return new ResultCollected();
}
public function createChangeableProcessedFile(array $list): ResultCollectedInterface
return new ResultCollected($list);
public function createEmptyChangeableProcessedFile(): ResultCollectedInterface