Syndesi/neo4j-sync-bundle

View on GitHub
src/Provider/StaticRelationLabelProvider.php

Summary

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

declare(strict_types=1);

namespace Syndesi\Neo4jSyncBundle\Provider;

use Syndesi\Neo4jSyncBundle\Contract\RelationLabelProviderInterface;
use Syndesi\Neo4jSyncBundle\ValueObject\RelationLabel;

class StaticRelationLabelProvider implements RelationLabelProviderInterface
{
    public function __construct(
        private readonly RelationLabel $label
    ) {
    }

    public function getLabel(?object $entity = null): RelationLabel
    {
        return $this->label;
    }
}