TaoLer/vendor/topthink/think-migration/phinx/Config/NamespaceAwareInterface.php
2024-04-01 10:04:16 +08:00

34 lines
712 B
PHP

<?php
/**
* MIT License
* For full license information, please view the LICENSE file that was distributed with this source code.
*/
namespace Phinx\Config;
/**
* Config aware getNamespaceByPath method.
*
* @package Phinx\Config
* @author Andrey N. Mokhov
*/
interface NamespaceAwareInterface
{
/**
* Get Migration Namespace associated with path.
*
* @param string $path Path
* @return string|null
*/
public function getMigrationNamespaceByPath(string $path): ?string;
/**
* Get Seed Namespace associated with path.
*
* @param string $path Path
* @return string|null
*/
public function getSeedNamespaceByPath(string $path): ?string;
}