This commit is contained in:
Your Name
2021-07-26 19:46:18 +02:00
parent e7a49138bb
commit aae17f10a6
818 changed files with 70695 additions and 16408 deletions
@@ -0,0 +1,29 @@
<?php
namespace HaydenPierce\ClassFinder;
interface FinderInterface
{
/**
* Find classes in a given namespace.
*
* @param string $namespace
* @param int $options
* @return string[]
*/
public function findClasses($namespace, $options);
/**
* Check if a given namespace is known.
*
* A namespace is "known" if a Finder can determine that the autoloader can create classes from that namespace.
*
* For instance:
* If given a classmap for "TestApp1\Foo\Bar\Baz", the namespace "TestApp1\Foo" is known, even if nothing loads
* from that namespace directly. It is known because classes that include that namespace are known.
*
* @param string $namespace
* @return bool
*/
public function isNamespaceKnown($namespace);
}