0 follower

Class Yiisoft\YiiDevTool\App\Component\Package\ReplicationSet

InheritanceYiisoft\YiiDevTool\App\Component\Package\ReplicationSet

Method Details

Hide inherited methods

__construct() public method

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)
{
}

            
appliesToPackage() public method

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))
    ;
}

            
getFiles() public method

public array getFiles ( )

                public function getFiles(): array
{
    return $this->files;
}

            
getSourcePackage() public method

public string getSourcePackage ( )

                public function getSourcePackage(): string
{
    return $this->sourcePackage;
}