<?php

namespace App\VichUploader\DirectoryNamer\Epage;

use App\Entity\Account;
use App\Entity\OnBoaringEpage;
use Vich\UploaderBundle\Mapping\PropertyMapping;
use Vich\UploaderBundle\Naming\DirectoryNamerInterface;

class DirectoryNamer implements DirectoryNamerInterface
{

    public function directoryName(object|array $object, PropertyMapping $mapping): string
    {
        /** @var OnBoaringEpage $ePage */
        $ePage = $object;
        return $ePage->getUuid();
    }
}
