Class Yiisoft\YiiDevTool\App\Component\Package\ReplicationSet
| Inheritance | Yiisoft\YiiDevTool\App\Component\Package\ReplicationSet |
|---|
Public Methods
Method Details
| public mixed __construct ( string $sourcePackage, array $files, array $includedPackages, array $excludedPackages ) | ||
| $sourcePackage | string | |
| $files | array | |
| $includedPackages | array | |
| $excludedPackages | array | |
public function __construct(private string $sourcePackage, private array $files, private array $includedPackages, private array $excludedPackages)
{
}
| public boolean appliesToPackage ( string $name ) | ||
| $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 string getSourcePackage ( ) |
public function getSourcePackage(): string
{
return $this->sourcePackage;
}
Signup or Login in order to comment.