<?php declare(strict_types=1);

namespace Newland\Toubiz\Sync\Neos\Tests\Factory;

use Newland\Toubiz\Sync\Neos\Domain\Model\File;

class FileFactory extends AbstractFactory
{

    public function make(array $properties = [])
    {
        $file = new File();

        $file->setName($properties['name'] ?? $this->faker->name);
        $file->setSourceUri($properties['sourceUri'] ?? $this->faker->imageUrl());
        $file->setOriginalId($properties['originalId'] ?? $this->faker->uuid);

        return $file;
    }
}
