Equip\Directory::withPrefix PHP Method

withPrefix() public method

Set the directory path prefix.
public withPrefix ( string $prefix ) : static
$prefix string
return static
    public function withPrefix($prefix)
    {
        $copy = clone $this;
        $copy->prefix = '/' . trim($prefix, '/');
        return $copy;
    }