Skip to contentwebsign-dev/sillbeam-core · v0.3.0
DiscoveryRoot
\Sillbeam\Core\Architecture · class
Methods (2)
\Sillbeam\Core\Architecture\DiscoveryRoot::__construct()Normalizes a boundary path without requiring that it exists.
public function __construct(string $path, public string $namespace, public array $excludes = [])
- Element kind
- method
- Declaring type
- \Sillbeam\Core\Architecture\DiscoveryRoot
- PHPDoc metadata
- Name
- param
- Description
- directory boundary; trailing separators are normalized
- Type
- string
- Variable
- path
- Name
- param
- Description
- PSR-4 prefix associated with the boundary
- Type
- string
- Variable
- namespace
- Name
- param
- Description
- root-relative exclusion patterns
- Type
- list<string>
- Variable
- excludes
- Visibility
- public
- Parameters
- Name
- path
- Type
- string
- Description
- directory boundary; trailing separators are normalized
- By reference
- No
- Variadic
- No
- Name
- namespace
- Type
- string
- Description
- PSR-4 prefix associated with the boundary
- By reference
- No
- Variadic
- No
- Name
- excludes
- Type
- list<string>
- Description
- root-relative exclusion patterns
- Default value
- []
- By reference
- No
- Variadic
- No
- Return value
- Type
- mixed
- abstract
- No
- final
- No
- static
- No
\Sillbeam\Core\Architecture\DiscoveryRoot::contains()Tests the root itself or a descendant using normalized directory boundaries.
Does not resolve symbolic links or require filesystem existence.
public function contains(string $path): bool
- Element kind
- method
- Declaring type
- \Sillbeam\Core\Architecture\DiscoveryRoot
- Visibility
- public
- Parameters
- Name
- path
- Type
- string
- By reference
- No
- Variadic
- No
- Return value
- Type
- bool
- abstract
- No
- final
- No
- static
- No
Properties (3)
\Sillbeam\Core\Architecture\DiscoveryRoot::$excludes- Element kind
- property
- Declaring type
- \Sillbeam\Core\Architecture\DiscoveryRoot
- Visibility
- public
- Type
- array
- Default value
- []
\Sillbeam\Core\Architecture\DiscoveryRoot::$namespace- Element kind
- property
- Declaring type
- \Sillbeam\Core\Architecture\DiscoveryRoot
- Visibility
- public
- Type
- string
\Sillbeam\Core\Architecture\DiscoveryRoot::$path- Element kind
- property
- Declaring type
- \Sillbeam\Core\Architecture\DiscoveryRoot
- Visibility
- public
- Type
- string