<?php
/**
 * @author    Igor Nikolaev <igor.sv.n@gmail.com>
 * @copyright Copyright (c) 2016, Darvin Studio
 * @link      https://www.darvin-studio.ru
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace Darvin\AdminBundle\EntityNamer;

/**
 * Entity namer
 */
interface EntityNamerInterface
{
    /**
     * @param object|string $entityOrClass Entity object or class
     *
     * @return string
     */
    public function name($entityOrClass);
}

<?php declare(strict_types=1);
/**
 * @author    Igor Nikolaev <igor.sv.n@gmail.com>
 * @copyright Copyright (c) 2016, Darvin Studio
 * @link      https://www.darvin-studio.ru
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace Darvin\AdminBundle\EntityNamer;

/**
 * Entity namer
 */
interface EntityNamerInterface
{
    /**
     * @param object|string $entityOrClass Entity object or class
     *
     * @return string
     */
    public function name($entityOrClass): string;
}

Enable strict types in entity namer interface.
Enable strict types in entity namer interface.
