<?php declare(strict_types=1);

namespace Newland\Toubiz\Sync\Neos\Tests\Unit\Importer\Mock;

use Newland\Toubiz\Api\ObjectAdapter\StarRatingAdapterInterface;

class StarClassificationAdapterMock implements StarRatingAdapterInterface
{

    public $properties = [];

    public function __construct(array $properties)
    {
        $this->properties = $properties;
    }

    public function getExternalId(): string
    {
        return $this->properties['externalId'] ?? '';
    }

    public function getValue(): int
    {
        return $this->properties['value'] ?? 0;
    }

    public function getLabel(): string
    {
        return $this->properties['label'] ?? '';
    }

    public function getBadgeUrl(): ?string
    {
        return $this->properties['badgeUrl'] ?? null;
    }
}
