Syndesi/neo4j-sync-bundle

View on GitHub
src/Provider/StaticIndexNameProvider.php

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
<?php

declare(strict_types=1);

namespace Syndesi\Neo4jSyncBundle\Provider;

use Syndesi\Neo4jSyncBundle\Contract\IndexNameProviderInterface;
use Syndesi\Neo4jSyncBundle\ValueObject\IndexName;

class StaticIndexNameProvider implements IndexNameProviderInterface
{
    public function __construct(
        private readonly IndexName $name
    ) {
    }

    public function getName(): IndexName
    {
        return $this->name;
    }
}