acelot/automapper

View on GitHub
src/Path/Part/ArrayKey.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php declare(strict_types=1);

namespace Acelot\AutoMapper\Path\Part;

use Acelot\AutoMapper\Path\PartInterface;

final class ArrayKey implements PartInterface
{
    public function __construct(
        private int|string $key
    ) {}

    public function getKey(): int|string
    {
        return $this->key;
    }
}