Class Yiisoft\YiiDevTool\App\Component\Package\ReplicationSet
| Inheritance | Yiisoft\YiiDevTool\App\Component\Package\ReplicationSet |
|---|
Public Methods
Method Details
| public __construct( string $sourcePackage, array $files, array $includedPackages, array $excludedPackages ): mixed | ||
| $sourcePackage | string | |
| $files | array | |
| $includedPackages | array | |
| $excludedPackages | array | |
public function __construct(private string $sourcePackage, private array $files, private array $includedPackages, private array $excludedPackages)
{
}
| public appliesToPackage( string $name ): boolean | ||
| $name | string | |
public function appliesToPackage(string $name): bool
{
if (!in_array('*', $this->includedPackages, true) && !in_array($name, $this->includedPackages, true)) {
return false;
}
return !(in_array('*', $this->excludedPackages, true) || in_array($name, $this->excludedPackages, true))
;
}
| public getSourcePackage( ): string |
public function getSourcePackage(): string
{
return $this->sourcePackage;
}
Signup or Login in order to comment.