Zippy API
Class

Alchemy\Zippy\Resource\Resource

class Resource

Methods

__construct(String $original, String $target)

Constructor

String getTarget()

Returns the target

String getOriginal()

Returns the original path

Boolean canBeProcessedInPlace(String $context)

Returns wheter the resource can be processed in place given a context or not.

Details

at line 25
public __construct(String $original, String $target)

Constructor

Parameters

String $original
String $target

at line 36
public String getTarget()

Returns the target

Return Value

String

at line 46
public String getOriginal()

Returns the original path

Return Value

String

at line 62
public Boolean canBeProcessedInPlace(String $context)

Returns wheter the resource can be processed in place given a context or not.

For example :
- /path/to/file1 can be processed to file1 in /path/to context
- /path/to/subdir/file2 can be processed to subdir/file2 in /path/to context

Parameters

String $context

Return Value

Boolean