eric-chau/jarvis

View on GitHub
src/Skill/DependencyInjection/Reference.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

declare(strict_types=1);

namespace Jarvis\Skill\DependencyInjection;

/**
 * @author Eric Chau <eriic.chau@gmail.com>
 */
class Reference
{
    /**
     * @var string
     */
    private $identifier;

    public function __construct(string $identifier)
    {
        $this->identifier = $identifier;
    }

    /**
     * @codeCoverageIgnore
     */
    public function identifier(): string
    {
        return $this->identifier;
    }

    /**
     * @codeCoverageIgnore
     */
    public function __toString(): string
    {
        return $this->identifier;
    }
}