<?php declare(strict_types=1);

namespace Newland\NeosFiltering\Tests\Factory;

use Newland\NeosFiltering\Tests\Fixture\Domain\Model\ExampleAttribute;
use Newland\Toubiz\Sync\Neos\Tests\Factory\AbstractFactory;

class ExampleAttributeFactory extends AbstractFactory
{

    public function make(array $properties = [])
    {
        $attribute = new ExampleAttribute();

        $attribute->name = $properties['name'] ?? $this->faker->name;
        $attribute->content = $properties['content'] ?? $this->faker->word;

        return $attribute;
    }
}
