<?php
namespace Newland\Toubiz\Sync\Neos\Tests\Factory;

/*
 * This file is part of the "toubiz-sync-neos" package.
 *
 * For the full copyright and license information, please read the
 * LICENSE.txt file that was distributed with this source code.
 */

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

class StarClassificationFactory extends AbstractFactory
{
    public function make(array $properties = [])
    {
        $starClassification = new StarClassification();

        $starClassification->setLanguage($properties['language'] ?? null);
        $starClassification->setValue($properties['value'] ?? -1);
        $starClassification->setBadgeUrl($properties['badgeUrl'] ?? null);
        $starClassification->setLabel($properties['label'] ?? '');
        $starClassification->setOriginalId($properties['originalId'] ?? '');

        return $starClassification;
    }
}
