Puli\Manager\Api\Repository\PathMapping::__construct PHP Method

__construct() public method

Creates a new path mapping.
public __construct ( string $repositoryPath, string | string[] $pathReferences )
$repositoryPath string The repository path.
$pathReferences string | string[] The path references.
    public function __construct($repositoryPath, $pathReferences)
    {
        Assert::path($repositoryPath);
        $pathReferences = (array) $pathReferences;
        Assert::notEmpty($pathReferences, 'At least one filesystem path must be passed.');
        Assert::allString($pathReferences, 'The filesystem paths must be strings. Got: %s');
        Assert::allNotEmpty($pathReferences, 'The filesystem paths must not be empty.');
        $this->repositoryPath = $repositoryPath;
        $this->pathReferences = $pathReferences;
    }